mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
test: remove unused mocktime in test_addpeeraddress
Drops the mocktime added infa4c6836c9
. Setting the mocktime in test_addpeeraddress() isn't needed anymore as it doesn't leak into test_getrawaddrman() anymore (since2cc8ca19f4
). test_getrawaddrman() clear's the addrman and sets it's own mocktime.
This commit is contained in:
parent
6205466512
commit
0d01f6f0c6
1 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue