From 5375acba8b04e54300d397cc5b8a7e538f01b9c2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 14 Apr 2025 15:22:01 +0200 Subject: [PATCH] rec: Fix a typo in the FWCatz regression tests Observed on GH actions: ``` test_FWCatz.py:353: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = expected = {'forward_zones': [{'forwarders': ['1.2.3.4'], 'zone': 'c.'}]} def checkForwards(self, expected): attempts = 0 tries = 10 ex = None while attempts < tries: try: with open('configs/' + self._confdir + '/catzone.forward.catz.') as file: reality = yaml.safe_load(file); if expected == reality: return except Exception as e: ex = e attempts = attempts + 1 > sleep(0.1) E NameError: name 'sleep' is not defined ``` --- regression-tests.recursor-dnssec/test_FWCatz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-tests.recursor-dnssec/test_FWCatz.py b/regression-tests.recursor-dnssec/test_FWCatz.py index e8768bb7e8..7d619bca38 100644 --- a/regression-tests.recursor-dnssec/test_FWCatz.py +++ b/regression-tests.recursor-dnssec/test_FWCatz.py @@ -299,7 +299,7 @@ recursor: except Exception as e: ex = e attempts = attempts + 1 - sleep(0.1) + time.sleep(0.1) if ex is not None: raise ex raise AssertionError('expected content not found') -- 2.47.2