Skip to content

Commit fa8614a

Browse files
author
MarcoFalke
committed
test: Fix intermittent p2p_segwit issue
1 parent ae32e5c commit fa8614a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/p2p_segwit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,12 +1896,12 @@ def test_non_standard_witness(self):
18961896
def test_upgrade_after_activation(self):
18971897
"""Test the behavior of starting up a segwit-aware node after the softfork has activated."""
18981898

1899-
# Restart with the new binary
19001899
self.stop_node(2)
19011900
self.start_node(2, extra_args=["-segwitheight={}".format(SEGWIT_HEIGHT)])
19021901
connect_nodes(self.nodes[0], 2)
19031902

1904-
self.sync_blocks()
1903+
# We reconnect more than 100 blocks, give it plenty of time
1904+
self.sync_blocks(timeout=240)
19051905

19061906
# Make sure that this peer thinks segwit has activated.
19071907
assert softfork_active(self.nodes[2], 'segwit')

0 commit comments

Comments
 (0)