Skip to content

Commit 0d01f6f

Browse files
committed
test: remove unused mocktime in test_addpeeraddress
Drops the mocktime added in fa4c683. Setting the mocktime in test_addpeeraddress() isn't needed anymore as it doesn't leak into test_getrawaddrman() anymore (since 2cc8ca1). test_getrawaddrman() clear's the addrman and sets it's own mocktime.
1 parent 6205466 commit 0d01f6f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/functional/rpc_net.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,6 @@ def test_addpeeraddress(self):
355355
assert_equal(len(node.getnodeaddresses(count=0)), 1)
356356

357357
self.log.debug("Test that adding a valid address to the tried table succeeds")
358-
self.addr_time = int(time.time())
359-
node.setmocktime(self.addr_time)
360358
assert_equal(node.addpeeraddress(address="1.2.3.4", tried=True, port=8333), {"success": True})
361359
addrman = node.getrawaddrman()
362360
assert_equal(len(addrman["new"]), 1)

0 commit comments

Comments
 (0)