[tests] Fix race in rpc_deprecated.py

Fixes a block generation race.
This commit is contained in:
John Newbery 2018-04-30 12:38:03 -04:00
parent 783bb6455e
commit a95bf6422a

View File

@ -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)