From 2a997a8e92205ddc01e8a46bb87f439ddeccb6f9 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Maeda Date: Tue, 5 Jun 2018 08:49:46 +0900 Subject: [PATCH] Fixed wrong variable name in SampleCrowdsale.test.js. (#916) --- test/examples/SampleCrowdsale.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/examples/SampleCrowdsale.test.js b/test/examples/SampleCrowdsale.test.js index 45d0c216e..e55afcd8a 100644 --- a/test/examples/SampleCrowdsale.test.js +++ b/test/examples/SampleCrowdsale.test.js @@ -76,7 +76,7 @@ contract('SampleCrowdsale', function ([owner, wallet, investor]) { }); it('should reject payments after end', async function () { - await increaseTimeTo(this.afterEnd); + await increaseTimeTo(this.afterClosingTime); await this.crowdsale.send(ether(1)).should.be.rejectedWith(EVMRevert); await this.crowdsale.buyTokens(investor, { value: ether(1), from: investor }).should.be.rejectedWith(EVMRevert); });