]> 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 09:39:11 +0000 (09:39 +0000)
commit13dab06f6072128cd74131631f99691ca6b0abef
tree6bddde304491c931475414a5505a9782a40b92fa
parent0e282066fb39b915a12246f7d16e513cc9155af3
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.

(cherry picked from commit 4e94ff2541bc31dcb03c8b58a67455aa2b00fa4c)
bin/tests/system/statschannel/generic.py