]> granicus.if.org Git - pdns/commitdiff
dnsdist: Restore a permissive check so we notice a really bad regression
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 20 Apr 2018 17:15:32 +0000 (19:15 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 20 Apr 2018 17:15:32 +0000 (19:15 +0200)
pdns/dnsdistdist/test-dnsdistrings_cc.cc

index db6d7c4b9b06cad3e64535ab414bfa92c7f1f622..d6f5c598c2c2c0b2657476c32873623f61b81e8c 100644 (file)
@@ -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;