Browse Source

zkey_import_export: Synchronize mempools before mining

Resolves a race condition that caused the RPC test to intermittently fail.

Closes #2892.
pull/4/head
Jack Grigg 6 years ago
parent
commit
9e8f1d09ca
No known key found for this signature in database GPG Key ID: 665DBCD284F7DAFF
  1. 3
      qa/rpc-tests/zkey_import_export.py

3
qa/rpc-tests/zkey_import_export.py

@ -113,7 +113,8 @@ class ZkeyImportExportTest (BitcoinTestFramework):
alice_zaddr = alice.z_getnewaddress()
res = alice.z_shieldcoinbase("*", alice_zaddr)
self.wait_and_assert_operationid_status(alice, res['opid'])
miner.generate(6)
self.sync_all()
miner.generate(1)
self.sync_all()
# Now get a pristine z-address for receiving transfers:

Loading…
Cancel
Save