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/p2p_invalid_tx.py | |
parent | fa1eac9cdb1a491d5947b6972b87833792a16fe3 (diff) |
qa: Avoid start/stop of the network thread mid-test
Diffstat (limited to 'test/functional/p2p_invalid_tx.py')
-rwxr-xr-x | test/functional/p2p_invalid_tx.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/p2p_invalid_tx.py b/test/functional/p2p_invalid_tx.py index 3fed872ccc..a7a86f89fd 100755 --- a/test/functional/p2p_invalid_tx.py +++ b/test/functional/p2p_invalid_tx.py @@ -13,7 +13,7 @@ from test_framework.messages import ( CTxIn, CTxOut, ) -from test_framework.mininode import network_thread_start, P2PDataStore, network_thread_join +from test_framework.mininode import P2PDataStore from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, @@ -32,7 +32,6 @@ class InvalidTxRequestTest(BitcoinTestFramework): Helper to connect and wait for version handshake.""" for _ in range(num_connections): self.nodes[0].add_p2p_connection(P2PDataStore()) - network_thread_start() self.nodes[0].p2p.wait_for_verack() def reconnect_p2p(self, **kwargs): @@ -41,7 +40,6 @@ class InvalidTxRequestTest(BitcoinTestFramework): The node gets disconnected several times in this test. This helper method reconnects the p2p and restarts the network thread.""" self.nodes[0].disconnect_p2ps() - network_thread_join() self.bootstrap_p2p(**kwargs) def run_test(self): |