We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1126f commit 29c2506Copy full SHA for 29c2506
src/test_collectors.py
@@ -64,6 +64,10 @@ def test_block_height(self):
64
65
def test_finalized_block_height(self):
66
"""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
+
71
payload = {
72
"jsonrpc": "2.0",
73
"method": "eth_getBlockByNumber",
0 commit comments