aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 02:06:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commita9ae555b88cc36ff2cbd92fdd37a339702860c01 (patch)
treed42ed590c81683a3f6acd0882d31392a9a97f1ca /test
parentd4dc428124a210cc6b8e1c50527a08e902bfadd0 (diff)
downloaddexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.gz
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.bz2
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.lz
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.xz
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.zst
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.zip
Store number of confirmations in a blockStore
Diffstat (limited to 'test')
-rw-r--r--test/event_watcher_test.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/event_watcher_test.ts b/test/event_watcher_test.ts
index 0a1e7eb63..2673f978b 100644
--- a/test/event_watcher_test.ts
+++ b/test/event_watcher_test.ts
@@ -60,15 +60,13 @@ describe('EventWatcher', () => {
web3 = web3Factory.create();
const pollingIntervalMs = 10;
web3Wrapper = new Web3Wrapper(web3.currentProvider);
- blockStore = new BlockStore();
- await blockStore.startAsync();
- eventWatcher = new EventWatcher(web3Wrapper, blockStore, pollingIntervalMs, numConfirmations);
+ blockStore = new BlockStore(numConfirmations);
+ eventWatcher = new EventWatcher(web3Wrapper, blockStore, pollingIntervalMs);
});
afterEach(() => {
// clean up any stubs after the test has completed
_.each(stubs, s => s.restore());
stubs = [];
- blockStore.stop();
eventWatcher.unsubscribe();
});
it('correctly emits initial log events', (done: DoneCallback) => {