]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Do not check the counters in eBPF's regression test 17457/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 May 2026 13:42:14 +0000 (15:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 May 2026 13:42:14 +0000 (15:42 +0200)
We might have already been blocked by the dynamic block regression
tests, if we are unlucky.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
regression-tests.dnsdist/test_EBPF.py

index 6c3613c8b5ce2d4aa162c4556890f78b4dae16ae..8769893218dd946f87596b717124d29ae8e55b86 100644 (file)
@@ -146,7 +146,8 @@ class TestSimpleEBPF(DNSDistTest):
         # block 127.0.0.1
         self.sendConsoleCommand('bpf:block(newCA("127.0.0.1"))')
         stats = self.sendConsoleCommand("bpf:getStats()")
-        self.assertIn("127.0.0.1: 0", stats)
+        # careful with the counters, we might have already been blocked during TestDynBlockEBPFQPS
+        self.assertIn("127.0.0.1: ", stats)
 
         name = "ip-blocked.ebpf.tests.powerdns.com."
         query = dns.message.make_query(name, "A", "IN", use_edns=False)