]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Avoid log spam in tests 11751/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 4 Jul 2022 13:32:13 +0000 (15:32 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 5 Jul 2022 07:03:22 +0000 (09:03 +0200)
pdns/recursordist/test-rec-zonetocache.cc

index d1256ac2f56e19388a6db6a6feef1c9c17bb02b0..412a42db0307b9073acc6c38e390e9c723ead202 100644 (file)
@@ -81,7 +81,6 @@ static void zonemdTest(const std::string& lines, pdns::ZoneMD::Config mode, pdns
   RecZoneToCache::ZoneToCache(config, state);
   unlink(temp);
 
-  g_recCache->doDump(2);
   BOOST_CHECK_EQUAL(g_recCache->size(), expectedCacheSize);
 
   if (expectedCacheSize > 0) {
@@ -100,6 +99,8 @@ BOOST_AUTO_TEST_CASE(test_zonetocache)
 {
   std::unique_ptr<SyncRes> sr;
   initSR(sr, true);
+  g_log.setLoglevel(Logger::Critical);
+  g_log.toConsole(Logger::Critical);
   setDNSSECValidation(sr, DNSSECMode::ValidateAll);
 
   zonemdTest(zone, pdns::ZoneMD::Config::Ignore, pdns::ZoneMD::Config::Ignore, 17U);