diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-10-07 13:22:51 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-10-07 13:22:02 +0200 |
commit | fadf1186c899f45787a91c28120b0608bdc6c246 (patch) | |
tree | d7510161aa389dcbd0b7ed911cb5249c587f258a /src/test/denialofservice_tests.cpp | |
parent | c0b6c96eee7c9e24b78935516225259e61cdabf7 (diff) | |
download | bitcoin-fadf1186c899f45787a91c28120b0608bdc6c246.tar.xz |
p2p: Use mocktime for ping timeout
Diffstat (limited to 'src/test/denialofservice_tests.cpp')
-rw-r--r-- | src/test/denialofservice_tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index 0bfe6eecd9..668ff150ee 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -52,6 +52,8 @@ BOOST_AUTO_TEST_CASE(outbound_slow_chain_eviction) { const CChainParams& chainparams = Params(); auto connman = std::make_unique<CConnman>(0x1337, 0x1337, *m_node.addrman); + // Disable inactivity checks for this test to avoid interference + static_cast<ConnmanTestMsg*>(connman.get())->SetPeerConnectTimeout(99999); auto peerLogic = PeerManager::make(chainparams, *connman, *m_node.addrman, nullptr, *m_node.chainman, *m_node.mempool, false); |