diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-03-04 15:08:10 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-03-21 10:46:25 -0400 |
commit | 5fa66e4682a59047d2ed2934760ccc052fd85f50 (patch) | |
tree | dd20a8cad0c582eeba795cb300bd6f945815ebd3 /qa/rpc-tests/test_framework/comptool.py | |
parent | 9e072a6e66efbda7d39bf61eded21d2b324323be (diff) | |
download | bitcoin-5fa66e4682a59047d2ed2934760ccc052fd85f50.tar.xz |
Create SingleNodeConnCB class for RPC tests
Diffstat (limited to 'qa/rpc-tests/test_framework/comptool.py')
-rwxr-xr-x | qa/rpc-tests/test_framework/comptool.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qa/rpc-tests/test_framework/comptool.py b/qa/rpc-tests/test_framework/comptool.py index a4cd4d0a89..e3f9b43235 100755 --- a/qa/rpc-tests/test_framework/comptool.py +++ b/qa/rpc-tests/test_framework/comptool.py @@ -27,20 +27,6 @@ generator that returns TestInstance objects. See below for definition. global mininode_lock -def wait_until(predicate, attempts=float('inf'), timeout=float('inf')): - attempt = 0 - elapsed = 0 - - while attempt < attempts and elapsed < timeout: - with mininode_lock: - if predicate(): - return True - attempt += 1 - elapsed += 0.05 - time.sleep(0.05) - - return False - class RejectResult(object): ''' Outcome that expects rejection of a transaction or block. |