From 452c094449de00f3640e6e0763366e7603375825 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Thu, 17 Aug 2023 14:40:35 -0300 Subject: [PATCH] test: fix 'unknown named parameter' test in `wallet_basic` Fixes loop when testing an unknown named parameter. --- test/functional/wallet_basic.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py index a4eb6ee29ae35..01149a09773c2 100755 --- a/test/functional/wallet_basic.py +++ b/test/functional/wallet_basic.py @@ -310,8 +310,7 @@ def run_test(self): node_0_bal += amount assert_equal(self.nodes[0].getbalance(), node_0_bal) - for key in ["totalFee", "feeRate"]: - assert_raises_rpc_error(-8, "Unknown named parameter key", self.nodes[2].sendtoaddress, address=address, amount=1, fee_rate=1, key=1) + assert_raises_rpc_error(-8, "Unknown named parameter feeRate", self.nodes[2].sendtoaddress, address=address, amount=1, fee_rate=1, feeRate=1) # Test setting explicit fee rate just below the minimum. self.log.info("Test sendmany raises 'fee rate too low' if fee_rate of 0.99999999 is passed") @@ -505,9 +504,6 @@ def run_test(self): fee = prebalance - postbalance - amount assert_fee_amount(fee, tx_size, Decimal(fee_rate_btc_kvb)) - for key in ["totalFee", "feeRate"]: - assert_raises_rpc_error(-8, "Unknown named parameter key", self.nodes[2].sendtoaddress, address=address, amount=1, fee_rate=1, key=1) - # Test setting explicit fee rate just below the minimum. self.log.info("Test sendtoaddress raises 'fee rate too low' if fee_rate of 0.99999999 is passed") assert_raises_rpc_error(-6, "Fee rate (0.999 sat/vB) is lower than the minimum fee rate setting (1.000 sat/vB)",