From fadc0c80ae4e526fb2b503f7cc02f6122aaf1de5 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 10 Jul 2020 18:19:11 +0200 Subject: p2p: Make timeout mockable and type safe, speed up test --- src/test/denialofservice_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/denialofservice_tests.cpp') diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index 668ff150ee..2d00c7ba41 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -53,7 +53,7 @@ BOOST_AUTO_TEST_CASE(outbound_slow_chain_eviction) const CChainParams& chainparams = Params(); auto connman = std::make_unique(0x1337, 0x1337, *m_node.addrman); // Disable inactivity checks for this test to avoid interference - static_cast(connman.get())->SetPeerConnectTimeout(99999); + static_cast(connman.get())->SetPeerConnectTimeout(99999s); auto peerLogic = PeerManager::make(chainparams, *connman, *m_node.addrman, nullptr, *m_node.chainman, *m_node.mempool, false); -- cgit v1.2.3