From: Otto Moerbeek Date: Mon, 11 Sep 2023 10:00:20 +0000 (+0200) Subject: Apply typo-in-comment fixes from code review X-Git-Tag: rec-5.0.0-alpha1~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13209%2Fhead;p=thirdparty%2Fpdns.git Apply typo-in-comment fixes from code review Co-authored-by: Remi Gacogne --- diff --git a/pdns/recursordist/test-aggressive_nsec_cc.cc b/pdns/recursordist/test-aggressive_nsec_cc.cc index 54bd7c043b..1809deea23 100644 --- a/pdns/recursordist/test-aggressive_nsec_cc.cc +++ b/pdns/recursordist/test-aggressive_nsec_cc.cc @@ -1208,13 +1208,13 @@ BOOST_AUTO_TEST_CASE(test_aggressive_nsec_pruning) BOOST_CHECK_EQUAL(cache->getEntriesCount(), 3U); /* we have set a upper bound to 2 entries, so we are above, - and one entry are actually expired, so we will prune one entry + and one entry is actually expired, so we will prune one entry to get below the limit */ cache->prune(now.tv_sec + 15); BOOST_CHECK_EQUAL(cache->getEntriesCount(), 2U); - /* now we are at the limit, so we will scan 1/5th of all zones entries, rounded up, - and prune the expired ones, which mean we will also remoing twoe */ + /* now we are at the limit, so we will scan 1/10th of all zones entries, rounded up, + and prune the expired ones, which mean we will also be removing the remaining two */ cache->prune(now.tv_sec + 600); BOOST_CHECK_EQUAL(cache->getEntriesCount(), 0U); }