Skip to content

Commit 29c2506

Browse files
committed
fix tests
1 parent 1d1126f commit 29c2506

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test_collectors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ def test_block_height(self):
6464

6565
def test_finalized_block_height(self):
6666
"""Tests the finalized_block_height function uses the correct call and args to get finalized block height"""
67+
# Mock the response to prevent the actual logic from executing
68+
mock_block_response = {"number": 1715004}
69+
self.mocked_websocket.return_value.query.return_value = mock_block_response
70+
6771
payload = {
6872
"jsonrpc": "2.0",
6973
"method": "eth_getBlockByNumber",

0 commit comments

Comments
 (0)