diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-11 05:34:21 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-11 05:34:21 +0800 |
commit | 2bf65fda1f6b3018edbb4158574465326d4918be (patch) | |
tree | 5d0ab098003463d6df35fef4bef8b113d0939908 /test/utils/blockchain_lifecycle.ts | |
parent | d90756e8ef2634737d41633f5427446b47223e98 (diff) | |
download | dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.tar dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.tar.gz dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.tar.bz2 dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.tar.lz dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.tar.xz dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.tar.zst dexon-sol-tools-2bf65fda1f6b3018edbb4158574465326d4918be.zip |
Add tests for the numConfirmations config to ensure that the events are being emitted for the confirmation depth specified
Diffstat (limited to 'test/utils/blockchain_lifecycle.ts')
-rw-r--r-- | test/utils/blockchain_lifecycle.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/utils/blockchain_lifecycle.ts b/test/utils/blockchain_lifecycle.ts index 9fdf0e856..9a44ccd6f 100644 --- a/test/utils/blockchain_lifecycle.ts +++ b/test/utils/blockchain_lifecycle.ts @@ -20,4 +20,7 @@ export class BlockchainLifecycle { throw new Error(`Snapshot with id #${snapshotId} failed to revert`); } } + public async mineABlock(): Promise<void> { + await this.rpc.mineBlockAsync(); + } } |