From 0dfb27ff5fecea358dc05ea52b44e96c8083ef90 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 16 Jan 2017 17:42:26 -0300 Subject: [PATCH] fix tests --- migrations/2_deploy_contracts.js | 5 +---- test/Killable.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index 5bb72caec..b52a6d09c 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -1,12 +1,9 @@ module.exports = function(deployer) { - deployer.deploy(PullPaymentBid); - deployer.deploy(BadArrayUse); - deployer.deploy(ProofOfExistence); deployer.deploy(Ownable); deployer.deploy(Claimable); deployer.deploy(LimitBalance); if(deployer.network == 'test'){ deployer.deploy(SecureTargetBounty); deployer.deploy(InsecureTargetBounty); - }; + } }; diff --git a/test/Killable.js b/test/Killable.js index 73bc8067b..d43d3e744 100644 --- a/test/Killable.js +++ b/test/Killable.js @@ -7,7 +7,7 @@ contract('Killable', function(accounts) { transactionReceiptAsync = function(txnHash, resolve, reject) { try { var receipt = web3.eth.getTransactionReceipt(txnHash); - if (receipt == null) { + if (receipt === null) { setTimeout(function () { transactionReceiptAsync(txnHash, resolve, reject); }, interval); @@ -37,9 +37,6 @@ contract('Killable', function(accounts) { web3.eth.sendTransaction({from: web3.eth.coinbase, to: accounts[0], value: web3.toWei('50','ether')}, function(err, result) { if(err) console.log("ERROR:" + err); - else { - console.log(result); - } }); killable = await Killable.new({from: accounts[0], value: web3.toWei('10','ether')});