From dbb41d1082b84a325aec159840e3763f5780e53c Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 8 Jul 2016 17:59:06 +0200 Subject: [PATCH] [qa] Adjust timeouts for micro-optimization of run time --- qa/rpc-tests/test_framework/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py index 08d01765e..b3610802c 100644 --- a/qa/rpc-tests/test_framework/util.py +++ b/qa/rpc-tests/test_framework/util.py @@ -105,7 +105,7 @@ def hex_str_to_bytes(hex_str): def str_to_b64str(string): return b64encode(string.encode('utf-8')).decode('ascii') -def sync_blocks(rpc_connections, wait=1, timeout=60, allow_different_tips=False): +def sync_blocks(rpc_connections, wait=0.125, timeout=60, allow_different_tips=False): """ Wait until everybody has the same tip, and has notified all internal listeners of them. @@ -134,7 +134,7 @@ def sync_blocks(rpc_connections, wait=1, timeout=60, allow_different_tips=False) raise AssertionError("Block sync failed") -def sync_mempools(rpc_connections, wait=1, timeout=60): +def sync_mempools(rpc_connections, wait=0.5, timeout=60): """ Wait until everybody has the same transactions in their memory pools, and has notified all internal listeners of them