fix: logs not an array (#81) #281
GitHub Actions / Tests
succeeded
Mar 1, 2024 in 0s
26 passed, 0 failed and 0 skipped
β Β unit-tests-report.json
26 tests were completed in 8s with 26 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/blockManager.test.ts | 22β | 2s | ||
test/providers/reliableWebsocket.test.ts | 2β | 4s | ||
test/providers/reliableWebsocketProvider.test.ts | 2β | 2s |
β Β test/blockManager.test.ts
Block Manager Block Manager with subscriber
β
1 block back 1 block logn reorg
β
2 blocks back 2 block long
β
handle block no reorg
β
handle block no reorg subscribeToLogs after initialize
β
initialize subscribers
β
reorg after fetching subscriber state
β
reorg when fetching subscriber state
β
rollback subscriber to a block older than its initialization
Block Manager Block Manager Without subscriber
β
1 block back 1 block long
β
1 block back 1 block long bigger than cache
β
1 block back 1 block long simulate block change in getLogs
β
1 block back 1 block long with failing get block
β
1 block back 1 block long with failing get block
β
2 blocks back 1 block long
β
2 blocks back 2 block long
β
Batch querying block
β
Batch querying block reorg
β
Batch querying block with bach size bigger than gap
β
detect already handle block
β
no reorg
β
no reorg but fail getLogs
β
Reorg older than initialize
β Β test/providers/reliableWebsocket.test.ts
Reliable Websocket
β
ReliableWebSocket simple send msg
β
ReliableWebSocket with reconnect
β Β test/providers/reliableWebsocketProvider.test.ts
ReliableWebSocketProvider
β
Block timeout
β
no reorg 2 block simulation
Loading