From 85c2e78edc206507dd3b9e0f2e92bb89ae7c2f9c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 11 Jun 2025 23:58:28 +1000 Subject: [PATCH] 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 (cherry picked from commit d8d14cb780410ea0955d7152223e01b7a1b6d1fa) --- bin/tests/system/xferquota/tests_xferquota.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/xferquota/tests_xferquota.py b/bin/tests/system/xferquota/tests_xferquota.py index 06421640c4..3ca538193a 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())