From a95bf6422a606b5a5e2735950204655d8b09d42d Mon Sep 17 00:00:00 2001 From: John Newbery Date: Mon, 30 Apr 2018 12:38:03 -0400 Subject: [PATCH] [tests] Fix race in rpc_deprecated.py Fixes a block generation race. --- test/functional/rpc_deprecated.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/rpc_deprecated.py b/test/functional/rpc_deprecated.py index 7b7c59650..2e0500e7c 100755 --- a/test/functional/rpc_deprecated.py +++ b/test/functional/rpc_deprecated.py @@ -49,6 +49,7 @@ class DeprecatedRpcTest(BitcoinTestFramework): # address0 = self.nodes[0].getnewaddress() self.nodes[0].generatetoaddress(101, address0) + self.sync_all() address1 = self.nodes[1].getnewaddress() self.nodes[1].generatetoaddress(101, address1)