diff options
author | Jon Atack <jon@atack.com> | 2020-11-10 12:29:01 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-11-12 11:43:17 +0100 |
commit | 449b730579566459e350703611629e63e54657ed (patch) | |
tree | 0cd98fd3d8cb44d52df4221677fa387e9ecc2dd7 /test/functional/wallet_bumpfee.py | |
parent | 6da3afbaee5809ebf6d88efaa3958c505c2d71c7 (diff) |
wallet: provide valid values if invalid estimate mode passed
Co-authored-by: Murch <murch@murch.one>
Diffstat (limited to 'test/functional/wallet_bumpfee.py')
-rwxr-xr-x | test/functional/wallet_bumpfee.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py index b9726ccfc3..c323aac3cc 100755 --- a/test/functional/wallet_bumpfee.py +++ b/test/functional/wallet_bumpfee.py @@ -138,7 +138,8 @@ class BumpFeeTest(BitcoinTestFramework): assert_raises_rpc_error(-3, "Expected type string for estimate_mode, got {}".format(k), rbf_node.bumpfee, rbfid, {"estimate_mode": v}) for mode in ["foo", Decimal("3.1415"), "sat/B", "BTC/kB"]: - assert_raises_rpc_error(-8, "Invalid estimate_mode parameter", rbf_node.bumpfee, rbfid, {"estimate_mode": mode}) + assert_raises_rpc_error(-8, 'Invalid estimate_mode parameter, must be one of: "unset", "economical", "conservative"', + rbf_node.bumpfee, rbfid, {"estimate_mode": mode}) self.clear_mempool() |