diff options
| author | Luke Dashjr <[email protected]> | 2020-11-21 19:06:25 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2020-11-24 05:31:58 +0000 |
| commit | b1f59d55d920d2b35269b474762f94fec87bfb16 (patch) | |
| tree | e124c5aed1a6f6aca0b72d669ec116164676d8e8 /test/functional | |
| parent | Merge #20401: qt: Pre-splitoff translations update (diff) | |
| download | discoin-b1f59d55d920d2b35269b474762f94fec87bfb16.tar.xz discoin-b1f59d55d920d2b35269b474762f94fec87bfb16.zip | |
RPC/Wallet: unloadwallet: Clarify docs/error when both the RPC endpoint and wallet_name parameter specify a wallet
Diffstat (limited to 'test/functional')
| -rwxr-xr-x | test/functional/wallet_multiwallet.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py index df16ec741..0d715b313 100755 --- a/test/functional/wallet_multiwallet.py +++ b/test/functional/wallet_multiwallet.py @@ -355,7 +355,8 @@ class MultiWalletTest(BitcoinTestFramework): assert_raises_rpc_error(-1, "JSON value is not a string as expected", self.nodes[0].unloadwallet) assert_raises_rpc_error(-18, "Requested wallet does not exist or is not loaded", self.nodes[0].unloadwallet, "dummy") assert_raises_rpc_error(-18, "Requested wallet does not exist or is not loaded", node.get_wallet_rpc("dummy").unloadwallet) - assert_raises_rpc_error(-8, "Cannot unload the requested wallet", w1.unloadwallet, "w2"), + assert_raises_rpc_error(-8, "Both the RPC endpoint wallet and wallet_name parameter were provided (only one allowed)", w1.unloadwallet, "w2"), + assert_raises_rpc_error(-8, "Both the RPC endpoint wallet and wallet_name parameter were provided (only one allowed)", w1.unloadwallet, "w1"), # Successfully unload the specified wallet name self.nodes[0].unloadwallet("w1") |