In particluar if a specific test was run that would set the maximum
RRSET very low, the reczones_helpers/test_UserHints test would fail.
SyncRes::s_refresh_ttlperc = 0;
SyncRes::s_locked_ttlperc = 0;
SyncRes::s_minimumTTL = 0;
+ s_maxRRSetSize = 256;
+ s_limitQTypeAny = true;
}
MemRecursorCache::MemRecursorCache(size_t mapsCount) :
BOOST_AUTO_TEST_CASE(test_UserHints)
{
-
+ MemRecursorCache::resetStaticsForTests();
g_recCache = make_unique<MemRecursorCache>();
::arg().set("max-generate-steps") = "0";
}
RecursorPacketCache::s_refresh_ttlperc = 0;
- MemRecursorCache::s_maxServedStaleExtensions = 0;
- MemRecursorCache::s_maxRRSetSize = 100;
- MemRecursorCache::s_limitQTypeAny = true;
+ MemRecursorCache::resetStaticsForTests();
NegCache::s_maxServedStaleExtensions = 0;
g_recCache = std::make_unique<MemRecursorCache>();
g_negCache = std::make_unique<NegCache>();