Fix race condition in rpc-tests/wallet_protectcoinbase.py. closes #1597
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
@@ -72,6 +72,7 @@ class Wallet2Test (BitcoinTestFramework):
|
|||||||
recipients.append({"address":myzaddr, "amount":20.0})
|
recipients.append({"address":myzaddr, "amount":20.0})
|
||||||
myopid = self.nodes[0].z_sendmany(mytaddr, recipients)
|
myopid = self.nodes[0].z_sendmany(mytaddr, recipients)
|
||||||
self.wait_for_operationd_success(myopid)
|
self.wait_for_operationd_success(myopid)
|
||||||
|
self.sync_all()
|
||||||
self.nodes[1].generate(1)
|
self.nodes[1].generate(1)
|
||||||
self.sync_all()
|
self.sync_all()
|
||||||
|
|
||||||
@@ -86,6 +87,7 @@ class Wallet2Test (BitcoinTestFramework):
|
|||||||
recipients.append({"address":mytaddr, "amount":20.0})
|
recipients.append({"address":mytaddr, "amount":20.0})
|
||||||
myopid = self.nodes[0].z_sendmany(myzaddr, recipients)
|
myopid = self.nodes[0].z_sendmany(myzaddr, recipients)
|
||||||
self.wait_for_operationd_success(myopid)
|
self.wait_for_operationd_success(myopid)
|
||||||
|
self.sync_all()
|
||||||
self.nodes[1].generate(1)
|
self.nodes[1].generate(1)
|
||||||
self.sync_all()
|
self.sync_all()
|
||||||
|
|
||||||
@@ -116,6 +118,7 @@ class Wallet2Test (BitcoinTestFramework):
|
|||||||
except JSONRPCException:
|
except JSONRPCException:
|
||||||
assert(False)
|
assert(False)
|
||||||
|
|
||||||
|
self.sync_all()
|
||||||
self.nodes[1].generate(10)
|
self.nodes[1].generate(10)
|
||||||
self.sync_all()
|
self.sync_all()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user