Fix capped crowdsale flaky test (#773)

This commit is contained in:
Facundo Spagnuolo
2018-03-02 15:20:00 -03:00
committed by Alejo Salles
parent b3a8602928
commit 3c48912730

View File

@ -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 () {