From: Remi Gacogne Date: Mon, 14 Apr 2025 13:22:01 +0000 (+0200) Subject: rec: Fix a typo in the FWCatz regression tests X-Git-Tag: dnsdist-2.0.0-alpha2~77^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15429%2Fhead;p=thirdparty%2Fpdns.git 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 ``` --- 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')