From: Otto Moerbeek Date: Fri, 4 Jun 2021 12:58:50 +0000 (+0200) Subject: make ttl value's origin clear X-Git-Tag: auth-4.5.0-beta1~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10426%2Fhead;p=thirdparty%2Fpdns.git make ttl value's origin clear Co-authored-by: Remi Gacogne --- 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... }