diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-09-29 20:19:57 -0700 |
---|---|---|
committer | Dhruv Mehta <856960+dhruv@users.noreply.github.com> | 2021-03-03 09:48:07 -0800 |
commit | 55e82881a1503bff146970856c1474a6ea659c94 (patch) | |
tree | 0509594a0e86852e8601d14ab44cd5a102f6bc40 /src/test/net_tests.cpp | |
parent | c733ac4d8a597b1001555b142f488ed9fbecc405 (diff) | |
download | bitcoin-55e82881a1503bff146970856c1474a6ea659c94.tar.xz |
Make all Poisson delays use std::chrono types
Diffstat (limited to 'src/test/net_tests.cpp')
-rw-r--r-- | src/test/net_tests.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index 5b2b7c6701..a29c6a2665 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -803,21 +803,6 @@ BOOST_AUTO_TEST_CASE(LocalAddress_BasicLifecycle) BOOST_CHECK_EQUAL(IsLocal(addr), false); } -BOOST_AUTO_TEST_CASE(PoissonNextSend) -{ - g_mock_deterministic_tests = true; - - int64_t now = 5000; - int average_interval_seconds = 600; - - auto poisson = ::PoissonNextSend(now, average_interval_seconds); - std::chrono::microseconds poisson_chrono = ::PoissonNextSend(std::chrono::microseconds{now}, std::chrono::seconds{average_interval_seconds}); - - BOOST_CHECK_EQUAL(poisson, poisson_chrono.count()); - - g_mock_deterministic_tests = false; -} - std::vector<NodeEvictionCandidate> GetRandomNodeEvictionCandidates(const int n_candidates, FastRandomContext& random_context) { std::vector<NodeEvictionCandidate> candidates; |