diff --git a/test/crowdsale/CappedCrowdsale.test.js b/test/crowdsale/CappedCrowdsale.test.js index a2b0c504f..a3dd9660f 100644 --- a/test/crowdsale/CappedCrowdsale.test.js +++ b/test/crowdsale/CappedCrowdsale.test.js @@ -20,7 +20,7 @@ contract('CappedCrowdsale', function ([_, wallet]) { beforeEach(async function () { this.token = await SimpleToken.new(); this.crowdsale = await CappedCrowdsale.new(rate, wallet, this.token.address, cap); - this.token.transfer(this.crowdsale.address, tokenSupply); + await this.token.transfer(this.crowdsale.address, tokenSupply); }); describe('creating a valid crowdsale', function () {