]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Fix a typo in the FWCatz regression tests 15429/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 Apr 2025 13:22:01 +0000 (15:22 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 Apr 2025 13:22:01 +0000 (15:22 +0200)
commit5375acba8b04e54300d397cc5b8a7e538f01b9c2
tree0577873592d0ac5bf1f0f4c7a3ee7402497935f5
parent9d7f2189b2ed85f1f8411cddc16a62797a1ebf13
rec: Fix a typo in the FWCatz regression tests

Observed on GH actions:
```
  test_FWCatz.py:353:
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

  self = <test_FWCatz.FWCatzXFRRecursorTest testMethod=testFWCatz>
  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