Skip to content

fix: logs not an array (#81) #281

fix: logs not an array (#81)

fix: logs not an array (#81) #281

GitHub Actions / Tests succeeded Mar 1, 2024 in 0s

26 passed, 0 failed and 0 skipped

Tests passed successfully

βœ…Β 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