mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:20:01 -04:00
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
This commit is contained in:
parent
a37afc3bb1
commit
d8d14cb780
1 changed files with 3 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue