]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Unbreak the dynblock unit tests 10853/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Oct 2021 16:10:43 +0000 (18:10 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Oct 2021 16:10:43 +0000 (18:10 +0200)
10835 conflicted with 10833 in a way not caught by our workflow.

pdns/dnsdistdist/test-dnsdistdynblocks_hh.cc

index b7c58e121baf34d7c1294d35b1616368429f8e53..ed8227fc6918f792f43658a3c2c17d1a6b9767e3 100644 (file)
@@ -945,7 +945,7 @@ BOOST_AUTO_TEST_CASE(test_DynBlockRulesMetricsCache_GetTopN) {
     /* insert one fake response for 255 DNS names */
     const ComboAddress requestor("192.0.2.1");
     for (size_t idx = 0; idx < 256; idx++) {
-      g_rings.insertResponse(now, requestor, DNSName(std::to_string(idx)) + qname, qtype, 1000 /*usec*/, size, dh, requestor /* backend, technically, but we don't care */);
+      g_rings.insertResponse(now, requestor, DNSName(std::to_string(idx)) + qname, qtype, 1000 /*usec*/, size, dh, requestor /* backend, technically, but we don't care */, dnsdist::Protocol::DoUDP);
     }
 
     /* we apply the rules, all suffixes should be blocked */