From 42787e2a7586917dfbfeb8edbb6b69d81841e019 Mon Sep 17 00:00:00 2001 From: Alejo Salles Date: Mon, 26 Mar 2018 21:55:52 -0300 Subject: [PATCH] added awaits (#845) --- test/crowdsale/IndividuallyCappedCrowdsale.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/crowdsale/IndividuallyCappedCrowdsale.test.js b/test/crowdsale/IndividuallyCappedCrowdsale.test.js index fb41b9d32..f5bd097c2 100644 --- a/test/crowdsale/IndividuallyCappedCrowdsale.test.js +++ b/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); });