From: Otto Moerbeek Date: Wed, 19 Nov 2025 10:01:58 +0000 (+0100) Subject: Check size of returned vector in test X-Git-Tag: rec-5.4.0-alpha1~19^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b5dce4b6f2bce4851a68d2684e64f4a8261c7b2;p=thirdparty%2Fpdns.git Check size of returned vector in test Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/test-recursorcache_cc.cc b/pdns/recursordist/test-recursorcache_cc.cc index a5993a95a8..2036aa81a3 100644 --- a/pdns/recursordist/test-recursorcache_cc.cc +++ b/pdns/recursordist/test-recursorcache_cc.cc @@ -1437,6 +1437,7 @@ BOOST_AUTO_TEST_CASE(test_RecursorAuthRecords) DNSName fromZone; MemRecursorCache::Extra extra; if (MRC.get(now, aname, QType(QType::ANY), MemRecursorCache::None, &retrieved, somebody, std::nullopt, &sigs, &authRecs, &variable, &state, &wasAuth, &fromZone, &extra) > 0) { + BOOST_CHECK_EQUAL(retrieved.size(), 2U); } }