Browse Source

add missing await in IndividuallyCappedCrowdsale (#867)

Francisco Giordano 7 years ago
parent
commit
03a3302abd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/crowdsale/IndividuallyCappedCrowdsale.test.js

+ 1 - 1
test/crowdsale/IndividuallyCappedCrowdsale.test.js

@@ -72,7 +72,7 @@ contract('IndividuallyCappedCrowdsale', function ([_, wallet, alice, bob, charli
     beforeEach(async function () {
       this.token = await SimpleToken.new();
       this.crowdsale = await CappedCrowdsale.new(rate, wallet, this.token.address);
-      this.crowdsale.setGroupCap([bob, charlie], capBob);
+      await this.crowdsale.setGroupCap([bob, charlie], capBob);
       await this.token.transfer(this.crowdsale.address, tokenSupply);
     });