From 645edfc936ce7a894954dca7bcea32107085bed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Triay?= Date: Thu, 28 Sep 2017 02:40:38 -0300 Subject: [PATCH] [TokenVesting] Fix should-revoke test --- test/TokenVesting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/TokenVesting.js b/test/TokenVesting.js index 74f6a7f39..001e0cfe4 100644 --- a/test/TokenVesting.js +++ b/test/TokenVesting.js @@ -57,9 +57,9 @@ contract('TokenVesting', function ([_, owner, beneficiary]) { balance.should.bignumber.equal(amount); }); - it('should not fail to be revoked by owner if revocable is set', async function () { + it('should be revoked by owner if revocable is set', async function () { const vesting = await TokenVesting.new(beneficiary, this.cliff, this.end, true, { from: owner } ); - await vesting.revoke(this.token.address, { from: owner }).should.be.rejectedWith(EVMThrow); + await vesting.revoke(this.token.address, { from: owner }).should.be.fulfilled; }); it('should fail to be revoked by owner if revocable not set', async function () {