Skip to content

Commit 7ccdd74

Browse files
committed
test: fix importmulti/importdescriptors assertion
as these RPCs have a "warnings" field, not a "warning" one.
1 parent 19d888c commit 7ccdd74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/wallet_createwallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run_test(self):
6060
else:
6161
result = w1.importmulti([{'scriptPubKey': {'address': key_to_p2wpkh(eckey.get_pubkey().get_bytes())}, 'timestamp': 'now', 'keys': [privkey]}])
6262
assert not result[0]['success']
63-
assert 'warning' not in result[0]
63+
assert 'warnings' not in result[0]
6464
assert_equal(result[0]['error']['code'], -4)
6565
assert_equal(result[0]['error']['message'], 'Cannot import private keys to a wallet with private keys disabled')
6666

0 commit comments

Comments
 (0)