]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Hopefully fixes spurious failures of TestHealthCheckLatency 17400/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 18 May 2026 12:40:02 +0000 (14:40 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 18 May 2026 12:40:02 +0000 (14:40 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
regression-tests.dnsdist/test_HealthChecks.py

index 430313a0adca0169ebfa4cde71957205c120a2b7..7d5528925d33200c2dd3c494ee76508a1b348436 100644 (file)
@@ -741,6 +741,13 @@ class TestHealthCheckLatency(HealthCheckUpdateParams):
         # introduce 500 ms of latency
         self.setDelay(0.5)
 
+        # consume any value received in the meantime (it does happen on GH actions runners)
+        try:
+            while self.wait1(False):
+                pass
+        except queue.Empty:
+            pass
+
         self.wait1(True)
 
         # should have no failures, still up