aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-07-10 18:19:11 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-12-06 10:47:52 +0100
commitfadc0c80ae4e526fb2b503f7cc02f6122aaf1de5 (patch)
treefcae45e90b07fc8721022b9ef8b7e09cead39406 /src/test/util
parentfa6d5a238d2c94440105ddd4f1554f85659d6c5b (diff)
p2p: Make timeout mockable and type safe, speed up test
Diffstat (limited to 'src/test/util')
-rw-r--r--src/test/util/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/net.h b/src/test/util/net.h
index d89fc34b75..0e0169568f 100644
--- a/src/test/util/net.h
+++ b/src/test/util/net.h
@@ -18,7 +18,7 @@
struct ConnmanTestMsg : public CConnman {
using CConnman::CConnman;
- void SetPeerConnectTimeout(int64_t timeout)
+ void SetPeerConnectTimeout(std::chrono::seconds timeout)
{
m_peer_connect_timeout = timeout;
}