mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-17 23:40:51 +02:00
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.
This commit is contained in:
parent
6205466512
commit
0d01f6f0c6
@ -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…
x
Reference in New Issue
Block a user