test: remove unused mocktime in test_addpeeraddress

Drops the mocktime added in fa4c6836c9.
Setting the mocktime in test_addpeeraddress() isn't needed
anymore as it doesn't leak into test_getrawaddrman() anymore
(since 2cc8ca19f4).

test_getrawaddrman() clear's the addrman and sets it's own
mocktime.
pull/28998/head
0xb10c 2 months ago
parent 6205466512
commit 0d01f6f0c6
No known key found for this signature in database
GPG Key ID: E2FFD5B1D88CA97D

@ -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)

Loading…
Cancel
Save