Skip to content

Commit faf9672

Browse files
author
MarcoFalke
committed
test: Fix wrong types passed to RPCs
1 parent 9887fc7 commit faf9672

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/functional/p2p_disconnect_ban.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def run_test(self):
107107

108108
self.log.info("disconnectnode: fail to disconnect when calling with address and nodeid")
109109
address1 = self.nodes[0].getpeerinfo()[0]['addr']
110-
node1 = self.nodes[0].getpeerinfo()[0]['addr']
110+
node1 = self.nodes[0].getpeerinfo()[0]["id"]
111111
assert_raises_rpc_error(-32602, "Only one of address and nodeid should be provided.", self.nodes[0].disconnectnode, address=address1, nodeid=node1)
112112

113113
self.log.info("disconnectnode: fail to disconnect when calling with junk address")

test/functional/wallet_descriptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def run_test(self):
109109
# Make sure things are disabled
110110
self.log.info("Test disabled RPCs")
111111
assert_raises_rpc_error(-4, "Only legacy wallets are supported by this command", recv_wrpc.rpc.importprivkey, "cVpF924EspNh8KjYsfhgY96mmxvT6DgdWiTYMtMjuM74hJaU5psW")
112-
assert_raises_rpc_error(-4, "Only legacy wallets are supported by this command", recv_wrpc.rpc.importpubkey, send_wrpc.getaddressinfo(send_wrpc.getnewaddress()))
112+
assert_raises_rpc_error(-4, "Only legacy wallets are supported by this command", recv_wrpc.rpc.importpubkey, send_wrpc.getaddressinfo(send_wrpc.getnewaddress())["pubkey"])
113113
assert_raises_rpc_error(-4, "Only legacy wallets are supported by this command", recv_wrpc.rpc.importaddress, recv_wrpc.getnewaddress())
114114
assert_raises_rpc_error(-4, "Only legacy wallets are supported by this command", recv_wrpc.rpc.importmulti, [])
115115
assert_raises_rpc_error(-4, "Only legacy wallets are supported by this command", recv_wrpc.rpc.addmultisigaddress, 1, [recv_wrpc.getnewaddress()])

0 commit comments

Comments
 (0)