From 7ccdd741fe1544c13b2a9b7baa5c5727e84d6e55 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Wed, 29 Mar 2023 17:51:44 -0700 Subject: [PATCH] test: fix importmulti/importdescriptors assertion as these RPCs have a "warnings" field, not a "warning" one. --- test/functional/wallet_createwallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py index 6258eb49d4b..58cc6befbd3 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')