aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_createwallet.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2023-03-29 17:51:44 -0700
committerJon Atack <jon@atack.com>2023-04-10 10:42:25 -0700
commit7ccdd741fe1544c13b2a9b7baa5c5727e84d6e55 (patch)
treefef2a68e0ef77d4b20fbb66f235370f5854ee56f /test/functional/wallet_createwallet.py
parent19d888ce407f44d90785c456a1a3e2a6870e9245 (diff)
downloadbitcoin-7ccdd741fe1544c13b2a9b7baa5c5727e84d6e55.tar.xz
test: fix importmulti/importdescriptors assertion
as these RPCs have a "warnings" field, not a "warning" one.
Diffstat (limited to 'test/functional/wallet_createwallet.py')
-rwxr-xr-xtest/functional/wallet_createwallet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py
index 6258eb49d4..58cc6befbd 100755
--- a/test/functional/wallet_createwallet.py
+++ b/test/functional/wallet_createwallet.py
@@ -60,7 +60,7 @@ class CreateWalletTest(BitcoinTestFramework):
else:
result = w1.importmulti([{'scriptPubKey': {'address': key_to_p2wpkh(eckey.get_pubkey().get_bytes())}, 'timestamp': 'now', 'keys': [privkey]}])
assert not result[0]['success']
- assert 'warning' not in result[0]
+ assert 'warnings' not in result[0]
assert_equal(result[0]['error']['code'], -4)
assert_equal(result[0]['error']['message'], 'Cannot import private keys to a wallet with private keys disabled')