QA: fix rpc_setban.py race

This commit is contained in:
Jonas Schnelli
2019-08-20 14:31:00 +02:00
parent e00ecb3d7a
commit 6011c9d72d
2 changed files with 18 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ class SetBanTests(BitcoinTestFramework):
self.nodes[1].setban("127.0.0.1", "add")
# Node 0 should not be able to reconnect
with self.nodes[1].assert_debug_log(expected_msgs=['dropped (banned)\n']):
with self.nodes[1].assert_debug_log(expected_msgs=['dropped (banned)\n'],timeout=5):
self.restart_node(1, [])
self.nodes[0].addnode("127.0.0.1:" + str(p2p_port(1)), "onetry")