From: Mark Andrews Date: Wed, 11 Jun 2025 13:58:28 +0000 (+1000) Subject: changing.db is updated too fast X-Git-Tag: v9.21.10~55^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d14cb780410ea0955d7152223e01b7a1b6d1fa;p=thirdparty%2Fbind9.git changing.db is updated too fast ensure a second has elasped before updating the zone file by adding 'time.sleep(1)' to xferquota/tests_xferquota.py --- diff --git a/bin/tests/system/xferquota/tests_xferquota.py b/bin/tests/system/xferquota/tests_xferquota.py index 06421640c46..3ca538193a8 100644 --- a/bin/tests/system/xferquota/tests_xferquota.py +++ b/bin/tests/system/xferquota/tests_xferquota.py @@ -14,6 +14,7 @@ import os import re import shutil import signal +import time import dns.message import pytest @@ -33,7 +34,8 @@ pytestmark = pytest.mark.extra_artifacts( def test_xferquota(named_port, servers): - # Changing test zone + # Changing test zone ensuring that the time stamp changes + time.sleep(1) shutil.copyfile("ns1/changing2.db", "ns1/changing.db") with open("ns1/named.pid", "r", encoding="utf-8") as pidfile: pid = int(pidfile.read())