qa: Only allow disconnecting all NodeConns

This commit is contained in:
MarcoFalke
2017-11-08 16:28:17 -05:00
parent f7388e93d3
commit faaa7db25e
4 changed files with 13 additions and 14 deletions

View File

@@ -54,7 +54,7 @@ class MaxUploadTest(BitcoinTestFramework):
# p2p_conns[2] will test resetting the counters
p2p_conns = []
for i in range(3):
for _ in range(3):
p2p_conns.append(self.nodes[0].add_p2p_connection(TestNode()))
NetworkThread().start() # Start up network handling in another thread
@@ -139,8 +139,7 @@ class MaxUploadTest(BitcoinTestFramework):
self.log.info("Peer 2 able to download old block")
for i in range(3):
self.nodes[0].disconnect_p2p()
self.nodes[0].disconnect_p2ps()
#stop and start node 0 with 1MB maxuploadtarget, whitelist 127.0.0.1
self.log.info("Restarting nodes with -whitelist=127.0.0.1")