aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-10-22 07:57:29 +0800
committerfanquake <fanquake@gmail.com>2020-10-22 08:40:38 +0800
commitdda18e7310a202a8aa46c95279446131659f91c5 (patch)
treea221a5669097a9bbc9abe2c8a6a966a43802fd6a
parentb46f37ba5ec4fbd2e4c82343fc4f353d7f34837a (diff)
parentfa5f46600fb98f1b35346bedc1a66c9019d01114 (diff)
downloadbitcoin-dda18e7310a202a8aa46c95279446131659f91c5.tar.xz
Merge #20214: test: Fix rpc_net intermittent issue
fa5f46600fb98f1b35346bedc1a66c9019d01114 test: Fix rpc_net intermittent issue (MarcoFalke) Pull request description: Without the sync, the nodes might generate blocks at the same height and thus never be able to sync ACKs for top commit: practicalswift: ACK fa5f46600fb98f1b35346bedc1a66c9019d01114: patch looks correct Tree-SHA512: 21255795c2121c71fc620beb766855e57c7af94a668331d1b625665e22eb4b485a2b5c3ad2bb9a7042744f3c3e49c71251bcec41ba25bca03fd54aae32968a3a
-rwxr-xr-xtest/functional/rpc_net.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py
index 9f7498a2f6..71e8e1b22a 100755
--- a/test/functional/rpc_net.py
+++ b/test/functional/rpc_net.py
@@ -54,6 +54,7 @@ class NetTest(BitcoinTestFramework):
# Connect nodes both ways.
self.connect_nodes(0, 1)
self.connect_nodes(1, 0)
+ self.sync_all()
self.test_connection_count()
self.test_getpeerinfo()