Skip to content

Commit

Permalink
Bugfix/fix individuallycapped flaky test (OpenZeppelin#789)
Browse files Browse the repository at this point in the history
* Fix InvididuallyCappedCrowdsale flaky test

* Fix IndividuallyCappedCrowdsale flaky test
  • Loading branch information
fiiiu authored and shrugs committed Mar 6, 2018
1 parent c3f5a91 commit 5a0c104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/crowdsale/IndividuallyCappedCrowdsale.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract('IndividuallyCappedCrowdsale', function ([_, wallet, alice, bob, charli
this.crowdsale = await CappedCrowdsale.new(rate, wallet, this.token.address);
this.crowdsale.setUserCap(alice, capAlice);
this.crowdsale.setUserCap(bob, capBob);
this.token.transfer(this.crowdsale.address, tokenSupply);
await this.token.transfer(this.crowdsale.address, tokenSupply);
});

describe('accepting payments', function () {
Expand Down Expand Up @@ -73,7 +73,7 @@ contract('IndividuallyCappedCrowdsale', function ([_, wallet, alice, bob, charli
this.token = await SimpleToken.new();
this.crowdsale = await CappedCrowdsale.new(rate, wallet, this.token.address);
this.crowdsale.setGroupCap([bob, charlie], capBob);
this.token.transfer(this.crowdsale.address, tokenSupply);
await this.token.transfer(this.crowdsale.address, tokenSupply);
});

describe('accepting payments', function () {
Expand Down

0 comments on commit 5a0c104

Please sign in to comment.