From 2454ebe39cabbcd39ac4155eda6156ed398a8e5e Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 20 Apr 2018 19:15:32 +0200 Subject: [PATCH] dnsdist: Restore a permissive check so we notice a really bad regression --- pdns/dnsdistdist/test-dnsdistrings_cc.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdistdist/test-dnsdistrings_cc.cc b/pdns/dnsdistdist/test-dnsdistrings_cc.cc index db6d7c4b9..d6f5c598c 100644 --- a/pdns/dnsdistdist/test-dnsdistrings_cc.cc +++ b/pdns/dnsdistdist/test-dnsdistrings_cc.cc @@ -222,8 +222,10 @@ BOOST_AUTO_TEST_CASE(test_Rings_Threaded) { BOOST_CHECK_EQUAL(rings.getNumberOfShards(), numberOfShards); BOOST_CHECK_EQUAL(rings.d_shards.size(), rings.getNumberOfShards()); BOOST_CHECK_LE(rings.getNumberOfQueryEntries(), numberOfEntries); + BOOST_CHECK_GT(rings.getNumberOfQueryEntries(), numberOfEntries * 0.75); BOOST_WARN_GT(rings.getNumberOfQueryEntries(), numberOfEntries * 0.99); BOOST_CHECK_LE(rings.getNumberOfResponseEntries(), numberOfEntries); + BOOST_CHECK_GT(rings.getNumberOfResponseEntries(), numberOfEntries * 0.75); BOOST_WARN_GT(rings.getNumberOfResponseEntries(), numberOfEntries * 0.99); size_t totalQueries = 0; -- 2.40.0