Skip to content

Commit 22e3808

Browse files
committed
test: fix node index bug when comparing peerinfo
1 parent 1fdd832 commit 22e3808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/p2p_v2_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run_test(self):
4848
assert_equal(self.nodes[1].getblockcount(), 5)
4949
# verify there is a v2 connection between node 0 and 1
5050
node_0_info = self.nodes[0].getpeerinfo()
51-
node_1_info = self.nodes[0].getpeerinfo()
51+
node_1_info = self.nodes[1].getpeerinfo()
5252
assert_equal(len(node_0_info), 1)
5353
assert_equal(len(node_1_info), 1)
5454
assert_equal(node_0_info[0]["transport_protocol_type"], "v2")

0 commit comments

Comments
 (0)