aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_timeouts.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-12-21 02:08:22 +0100
committerMarcoFalke <falke.marco@gmail.com>2018-12-21 02:00:32 +0100
commitfabcd645b962ca5cad5a09a3d0d2eb9f006e9e8d (patch)
tree013da86f90ca09f03ba4e871652cf689fdb9f6f0 /test/functional/p2p_timeouts.py
parent45fe39022a65b615fcb6baa1933ed52f5d0caa58 (diff)
test: Avoid racy test p2p_timeouts
Diffstat (limited to 'test/functional/p2p_timeouts.py')
-rwxr-xr-xtest/functional/p2p_timeouts.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/p2p_timeouts.py b/test/functional/p2p_timeouts.py
index ffed853033..02ceec3dc1 100755
--- a/test/functional/p2p_timeouts.py
+++ b/test/functional/p2p_timeouts.py
@@ -72,7 +72,11 @@ class TimeoutsTest(BitcoinTestFramework):
]
with self.nodes[0].assert_debug_log(expected_msgs=expected_timeout_logs):
- sleep(2)
+ sleep(3)
+ # By now, we waited a total of 5 seconds. Off-by-two for two
+ # reasons:
+ # * The internal precision is one second
+ # * Account for network delay
assert not no_verack_node.is_connected
assert not no_version_node.is_connected
assert not no_send_node.is_connected