]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences 13440/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 31 Oct 2023 15:35:06 +0000 (16:35 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 31 Oct 2023 15:35:06 +0000 (16:35 +0100)
Backport of #13237

pdns/recursordist/test-aggressive_nsec_cc.cc

index 1809deea237118024f1285dcb9c3e2e6f2f00cad..249e9b561f74a6fbb5d706558216ce2d783d3f5d 100644 (file)
@@ -1121,7 +1121,7 @@ BOOST_AUTO_TEST_CASE(test_aggressive_nsec_replace)
 
   auto diff2 = time.udiff(true);
   // Check that replace is about equally fast as insert
-  BOOST_CHECK(diff1 < diff2 * 1.2 && diff2 < diff1 * 1.2);
+  BOOST_CHECK(diff1 < diff2 * 2 && diff2 < diff1 * 2);
 }
 
 BOOST_AUTO_TEST_CASE(test_aggressive_nsec_wiping)