Skip to content

Commit c3dc0b0

Browse files
committed
Don't check blocknum equality, we could be at block transition
1 parent d4bc0c4 commit c3dc0b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web3/_utils/module_testing/persistent_connection_provider.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,11 @@ async def test_asyncio_gather_for_multiple_requests_matches_the_responses(
655655
assert all(k in pending.keys() for k in SOME_BLOCK_KEYS)
656656

657657
assert isinstance(block_num, int)
658-
assert latest["number"] == block_num
659-
660658
assert isinstance(chain_id, int)
661659
assert isinstance(chain_id2, int)
662660
assert isinstance(chain_id3, int)
661+
# chain id is set in fixture file
662+
assert chain_id == chain_id2 == chain_id3 == 131277322940537
663663

664664
@pytest.mark.asyncio
665665
async def test_async_public_socket_api(self, async_w3: AsyncWeb3) -> None:
@@ -854,7 +854,7 @@ async def test_handle_subscriptions_breaks_on_unsubscribe(
854854
async_w3: AsyncWeb3,
855855
) -> None:
856856
async def unsubscribe_subs(
857-
subs: List[Union[NewHeadsSubscription, LogsSubscription]]
857+
subs: List[Union[NewHeadsSubscription, LogsSubscription]],
858858
) -> None:
859859
for sub in subs:
860860
await sub.unsubscribe()

0 commit comments

Comments
 (0)