From e91e521a189a447f6e2f5fa4c4c627f0298e9aa8 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 4 Jun 2021 14:58:50 +0200 Subject: [PATCH] make ttl value's origin clear Co-authored-by: Remi Gacogne --- pdns/recursordist/test-syncres_cc2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/test-syncres_cc2.cc b/pdns/recursordist/test-syncres_cc2.cc index 6c8ef50cff..03d52c1071 100644 --- a/pdns/recursordist/test-syncres_cc2.cc +++ b/pdns/recursordist/test-syncres_cc2.cc @@ -1845,7 +1845,7 @@ BOOST_AUTO_TEST_CASE(test_cache_almost_expired_ttl) BOOST_REQUIRE(ret[0].d_type == QType::NS); BOOST_CHECK_EQUAL(getRR(ret[0])->getNS(), DNSName("pdns-public-ns1.powerdns.com.")); ttl = ret[0].d_ttl - now; - BOOST_CHECK_EQUAL(ttl, 86400U); + BOOST_CHECK_EQUAL(ttl, std::min(SyncRes::s_maxcachettl, 172800U)); // ATM we are not testing the almost expiry of root infra records, it would require quite some cache massage... } -- 2.47.2