Unverified Commit f52a555c authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1102 from ethereum/fixTryTillResponse

Fix tryTillResponse test
parents 0fc53e2f 075d03ef
......@@ -204,8 +204,8 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
function tryTillResponse (txhash, done) {
executionContext.web3().eth.getTransactionReceipt(txhash, function (err, result) {
if (!err && !result) {
// Try again with a bit of delay
if (err || !result) {
// Try again with a bit of delay if error or if result still null
setTimeout(function () { tryTillResponse(txhash, done) }, 500)
} else {
done(err, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment