From 3c489127306d09dc08c6a22263134fb5413d2f80 Mon Sep 17 00:00:00 2001 From: Facundo Spagnuolo Date: Fri, 2 Mar 2018 15:20:00 -0300 Subject: [PATCH] Fix capped crowdsale flaky test (#773) --- test/crowdsale/CappedCrowdsale.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () {