Browse Source

added awaits (#845)

Alejo Salles 7 years ago
parent
commit
42787e2a75
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/crowdsale/IndividuallyCappedCrowdsale.test.js

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

@@ -23,8 +23,8 @@ 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.setUserCap(alice, capAlice);
-      this.crowdsale.setUserCap(bob, capBob);
+      await this.crowdsale.setUserCap(alice, capAlice);
+      await this.crowdsale.setUserCap(bob, capBob);
       await this.token.transfer(this.crowdsale.address, tokenSupply);
     });