From 0d01f6f0c6e53c9765f84e0616ab46b83923a6ad Mon Sep 17 00:00:00 2001 From: 0xb10c Date: Tue, 12 Mar 2024 13:42:20 +0100 Subject: [PATCH] test: remove unused mocktime in test_addpeeraddress Drops the mocktime added in fa4c6836c9366c3cc575cb386a397840d5f1aa57. Setting the mocktime in test_addpeeraddress() isn't needed anymore as it doesn't leak into test_getrawaddrman() anymore (since 2cc8ca19f4185490f30a49516c890b2289fbab71). test_getrawaddrman() clear's the addrman and sets it's own mocktime. --- test/functional/rpc_net.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py index e50aeebad2..5801f2ce43 100755 --- a/test/functional/rpc_net.py +++ b/test/functional/rpc_net.py @@ -355,8 +355,6 @@ class NetTest(BitcoinTestFramework): assert_equal(len(node.getnodeaddresses(count=0)), 1) self.log.debug("Test that adding a valid address to the tried table succeeds") - self.addr_time = int(time.time()) - node.setmocktime(self.addr_time) assert_equal(node.addpeeraddress(address="1.2.3.4", tried=True, port=8333), {"success": True}) addrman = node.getrawaddrman() assert_equal(len(addrman["new"]), 1)