From 807bf024346f61d0803bed41bd61e11ef50d2b97 Mon Sep 17 00:00:00 2001 From: shravan-shandilya Date: Wed, 26 Oct 2016 19:20:50 +0530 Subject: [PATCH] reverted back the change --- tests/filtering/test_filter_against_latest_blocks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/filtering/test_filter_against_latest_blocks.py b/tests/filtering/test_filter_against_latest_blocks.py index 8c43d25..ace08d7 100644 --- a/tests/filtering/test_filter_against_latest_blocks.py +++ b/tests/filtering/test_filter_against_latest_blocks.py @@ -16,8 +16,9 @@ def test_filter_against_latest_blocks(web3_empty, wait_for_block, skip_if_testrp wait_for_block(web3, current_block + 3) - while len(seen_blocks) < 2: - pass + with gevent.Timeout(5): + while len(seen_blocks) < 2: + gevent.sleep(random.random()) txn_filter.stop_watching(3)