diff options
author | Jon Atack <jon@atack.com> | 2023-03-29 17:51:44 -0700 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-04-10 10:42:25 -0700 |
commit | 7ccdd741fe1544c13b2a9b7baa5c5727e84d6e55 (patch) | |
tree | fef2a68e0ef77d4b20fbb66f235370f5854ee56f | |
parent | 19d888ce407f44d90785c456a1a3e2a6870e9245 (diff) | |
download | bitcoin-7ccdd741fe1544c13b2a9b7baa5c5727e84d6e55.tar.xz |
test: fix importmulti/importdescriptors assertion
as these RPCs have a "warnings" field, not a "warning" one.
-rwxr-xr-x | test/functional/wallet_createwallet.py | 2 |
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') |