Browse Source

Fix capped crowdsale flaky test (#773)

Facundo Spagnuolo 7 years ago
parent
commit
3c48912730
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/crowdsale/CappedCrowdsale.test.js

+ 1 - 1
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 () {