diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-06-18 17:28:37 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-06-25 14:06:41 -0400 |
commit | fa87da2f172ae2e6dc15e9ed156a3564a8ecfbdd (patch) | |
tree | 2693cae5718e45e84182d85a4d041fc084d6bd8e /test/functional/test_framework/test_node.py | |
parent | fa1eac9cdb1a491d5947b6972b87833792a16fe3 (diff) |
qa: Avoid start/stop of the network thread mid-test
Diffstat (limited to 'test/functional/test_framework/test_node.py')
-rwxr-xr-x | test/functional/test_framework/test_node.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 0353fc0712..287dc0e53e 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -289,7 +289,7 @@ class TestNode(): if 'dstaddr' not in kwargs: kwargs['dstaddr'] = '127.0.0.1' - p2p_conn.peer_connect(*args, **kwargs) + p2p_conn.peer_connect(*args, **kwargs)() self.p2ps.append(p2p_conn) return p2p_conn @@ -343,10 +343,10 @@ class TestNodeCLI(): def batch(self, requests): results = [] for request in requests: - try: - results.append(dict(result=request())) - except JSONRPCException as e: - results.append(dict(error=e)) + try: + results.append(dict(result=request())) + except JSONRPCException as e: + results.append(dict(error=e)) return results def send_cli(self, command=None, *args, **kwargs): |