aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils/test/blockchain_lifecycle_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-15 03:53:40 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-15 03:53:40 +0800
commit599adaf1bf2bee561530b932610f80cd1a9111ee (patch)
tree070b6220925d9977e15333d91b3fa90cae690c1a /packages/dev-utils/test/blockchain_lifecycle_test.ts
parent778e399438c52c80626bc3fc9c76d2688b4296e4 (diff)
downloaddexon-0x-contracts-599adaf1bf2bee561530b932610f80cd1a9111ee.tar.gz
dexon-0x-contracts-599adaf1bf2bee561530b932610f80cd1a9111ee.tar.zst
dexon-0x-contracts-599adaf1bf2bee561530b932610f80cd1a9111ee.zip
Add an assertion
Diffstat (limited to 'packages/dev-utils/test/blockchain_lifecycle_test.ts')
-rw-r--r--packages/dev-utils/test/blockchain_lifecycle_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/dev-utils/test/blockchain_lifecycle_test.ts b/packages/dev-utils/test/blockchain_lifecycle_test.ts
index 14712faa0..4fdc53c87 100644
--- a/packages/dev-utils/test/blockchain_lifecycle_test.ts
+++ b/packages/dev-utils/test/blockchain_lifecycle_test.ts
@@ -17,9 +17,11 @@ describe('BlockchainLifecycle tests', () => {
const blockNumberBefore = await web3Wrapper.getBlockNumberAsync();
await blockchainLifecycle.startAsync();
await rpc.mineBlockAsync();
- await blockchainLifecycle.revertAsync();
const blockNumberAfter = await web3Wrapper.getBlockNumberAsync();
- expect(blockNumberAfter).to.be.equal(blockNumberBefore);
+ expect(blockNumberAfter).to.be.equal(blockNumberBefore + 1);
+ await blockchainLifecycle.revertAsync();
+ const blockNumberAfterRevert = await web3Wrapper.getBlockNumberAsync();
+ expect(blockNumberAfterRevert).to.be.equal(blockNumberBefore);
});
});
});