add missing awaits in tests

This commit is contained in:
Francisco Giordano
2018-01-15 16:58:00 -03:00
parent beea818f4e
commit ea1cb5c54e
2 changed files with 9 additions and 9 deletions

View File

@ -74,7 +74,7 @@ contract('Bounty', function (accounts) {
web3.eth.getBalance(bounty.address).toNumber());
}
};
bounty.createTarget({ from: researcher });
await bounty.createTarget({ from: researcher });
await awaitEvent(event, watcher);
});
});
@ -104,7 +104,7 @@ contract('Bounty', function (accounts) {
assert.equal(0, web3.eth.getBalance(bounty.address).toNumber());
};
bounty.createTarget({ from: researcher });
await bounty.createTarget({ from: researcher });
await awaitEvent(event, watcher);
});
});