diff options
author | brunoerg <brunoely.gc@gmail.com> | 2022-12-21 11:03:24 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2022-12-21 11:03:24 -0300 |
commit | 3666a06730b2229e5af24124e6ef0403e4a6792e (patch) | |
tree | 4bcec0537a18fb39bb6254f34ce0b605a97dd229 | |
parent | 6d40a1a7e7f09ff2c32e53237f968adf8300d028 (diff) | |
download | bitcoin-3666a06730b2229e5af24124e6ef0403e4a6792e.tar.xz |
test: add coverage for unknown wallet flag in `setwalletflag`
-rwxr-xr-x | test/functional/wallet_avoidreuse.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/wallet_avoidreuse.py b/test/functional/wallet_avoidreuse.py index 474270cf80..8d7f7ec7c2 100755 --- a/test/functional/wallet_avoidreuse.py +++ b/test/functional/wallet_avoidreuse.py @@ -120,6 +120,8 @@ class AvoidReuseTest(BitcoinTestFramework): assert_raises_rpc_error(-8, "Wallet flag is already set to false", self.nodes[0].setwalletflag, 'avoid_reuse', False) assert_raises_rpc_error(-8, "Wallet flag is already set to true", self.nodes[1].setwalletflag, 'avoid_reuse', True) + assert_raises_rpc_error(-8, "Unknown wallet flag: abc", self.nodes[0].setwalletflag, 'abc', True) + # Create a wallet with avoid reuse, and test that disabling it afterwards persists self.nodes[1].createwallet(wallet_name="avoid_reuse_persist", avoid_reuse=True) w = self.nodes[1].get_wallet_rpc("avoid_reuse_persist") |