]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a statschannel system test zone loadtime issue
authorAram Sargsyan <aram@isc.org>
Tue, 12 Dec 2023 14:54:40 +0000 (14:54 +0000)
committerAram Sargsyan <aram@isc.org>
Mon, 18 Dec 2023 08:46:31 +0000 (08:46 +0000)
commit4e94ff2541bc31dcb03c8b58a67455aa2b00fa4c
tree13cf3b19d4b0da2d75bf03bc7dc9c57b4366c6bc
parentced40c48a4bccd608a4f049f6782e35b7a619102
Fix a statschannel system test zone loadtime issue

The check_loaded() function compares the zone's loadtime value and
an expected loadtime value, which is based on the zone file's mtime
extracted from the filesystem.

For the secondary zones there may be cases, when the zone file isn't
ready yet before the zone transfer is complete and the zone file is
dumped to the disk, so a so zero value mtime is retrieved.

In such cases wait one second and retry until timeout. Also modify
the affected check to allow a possible difference of the same amount
of seconds as the chosen timeout value.
bin/tests/system/statschannel/generic.py