mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-02 16:01:58 +02:00
test: fix importmulti/importdescriptors assertion
as these RPCs have a "warnings" field, not a "warning" one.
This commit is contained in:
parent
19d888ce40
commit
7ccdd741fe
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user