diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-10 04:44:03 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-10 05:20:31 +0800 |
commit | c9e0b298781ca1522f69cae66ac966a0e4800469 (patch) | |
tree | d53806707cd9e5532c88fc3eed3b085644a8f036 /test | |
parent | 3a96fec03b5b258a8a2ec5f1c2771cf2a9742e8b (diff) | |
download | dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.tar dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.tar.gz dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.tar.bz2 dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.tar.lz dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.tar.xz dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.tar.zst dexon-sol-tools-c9e0b298781ca1522f69cae66ac966a0e4800469.zip |
Add SubscriptionAlreadyPresent error
Diffstat (limited to 'test')
-rw-r--r-- | test/event_watcher_test.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/event_watcher_test.ts b/test/event_watcher_test.ts index 208871ea8..a246805a0 100644 --- a/test/event_watcher_test.ts +++ b/test/event_watcher_test.ts @@ -23,6 +23,7 @@ describe('EventWatcher', () => { let stubs: Sinon.SinonStub[] = []; let eventWatcher: EventWatcher; let web3Wrapper: Web3Wrapper; + const numConfirmations = 0; const logA = { address: '0x71d271f8b14adef568f8f28f1587ce7271ac4ca5', blockHash: null, @@ -87,7 +88,7 @@ describe('EventWatcher', () => { done(); } }; - eventWatcher.subscribe(callback); + eventWatcher.subscribe(callback, numConfirmations); }); it('correctly computes the difference and emits only changes', (done: DoneCallback) => { const initialLogs: Web3.LogEntry[] = [logA, logB]; @@ -121,6 +122,6 @@ describe('EventWatcher', () => { done(); } }; - eventWatcher.subscribe(callback); + eventWatcher.subscribe(callback, numConfirmations); }); }); |