QA: Fix race condition in wallet_encryption test

This commit is contained in:
Jonas Schnelli 2019-07-18 22:12:51 +02:00
parent e5abb59a9a
commit 024ecd7e01
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D

View file

@ -49,7 +49,7 @@ class WalletEncryptionTest(BitcoinTestFramework):
assert_equal(privkey, self.nodes[0].dumpprivkey(address)) assert_equal(privkey, self.nodes[0].dumpprivkey(address))
# Check that the timeout is right # Check that the timeout is right
time.sleep(2) time.sleep(3)
assert_raises_rpc_error(-13, "Please enter the wallet passphrase with walletpassphrase first", self.nodes[0].dumpprivkey, address) assert_raises_rpc_error(-13, "Please enter the wallet passphrase with walletpassphrase first", self.nodes[0].dumpprivkey, address)
# Test wrong passphrase # Test wrong passphrase