aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-28 08:14:22 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-04-28 08:13:05 +0200
commitfa37116c820f6a84642d57ce709a5977fd5616c4 (patch)
tree638d411780d9aca581c3ebc5859029381ff6d659 /test/functional
parent19a56d1519fb493c3e1bd5cad55360b6b80fa52b (diff)
test: Use self.send_addr_msg
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/p2p_addr_relay.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/p2p_addr_relay.py b/test/functional/p2p_addr_relay.py
index fdd02b7324..d07c1c2d76 100755
--- a/test/functional/p2p_addr_relay.py
+++ b/test/functional/p2p_addr_relay.py
@@ -203,10 +203,7 @@ class AddrTest(BitcoinTestFramework):
self.log.info('Check that we relay address messages')
addr_source = self.nodes[0].add_p2p_connection(P2PInterface())
msg = self.setup_addr_msg(2)
- addr_source.send_and_ping(msg)
- self.mocktime += 5 * 60
- self.nodes[0].setmocktime(self.mocktime)
- full_outbound_peer.sync_with_ping()
+ self.send_addr_msg(addr_source, msg, [full_outbound_peer])
assert_equal(full_outbound_peer.num_ipv4_received, 2)
self.nodes[0].disconnect_p2ps()