From: Remi Gacogne Date: Tue, 9 Aug 2022 11:22:25 +0000 (+0200) Subject: dnsdist: Fix a possible race in the CDB reload regression tests X-Git-Tag: rec-4.8.0-alpha1~67^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11838%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix a possible race in the CDB reload regression tests --- diff --git a/regression-tests.dnsdist/test_CDB.py b/regression-tests.dnsdist/test_CDB.py index 2ed764ce86..f4095aeac5 100644 --- a/regression-tests.dnsdist/test_CDB.py +++ b/regression-tests.dnsdist/test_CDB.py @@ -184,6 +184,9 @@ class TestCDBReload(CDBTest): self.assertEqual(expectedResponse, receivedResponse) # write a new CDB which has no entry for 127.0.0.1 + # first ensure that the mtime will change after writing + # the new version + time.sleep(1) writeCDB(self._cdbFileName, 2) # wait long enough for the CDB database to be reloaded time.sleep(self._cdbRefreshDelay + 1)