]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use time.monotonic() for time measumeremts in pytest
authorNicki Křížek <nicki@isc.org>
Thu, 19 Jun 2025 12:09:57 +0000 (14:09 +0200)
committerNicki Křížek <nicki@isc.org>
Thu, 19 Jun 2025 12:11:28 +0000 (14:11 +0200)
commit069e4ef0f72bfe045123db817908460144ff70f7
tree06aedee663250be4e716cb8416280a1362a96672
parent481b46ffccbdb6e0fbdb13a8bc437d50e44a4ca9
Use time.monotonic() for time measumeremts in pytest

For duration measurements, i.e. deadlines and timeouts, it's more
suitable to use monotonic time as it's guaranteed to only go forward,
unlike time.time() which can be affected by local clock settings.
bin/tests/system/doth/tests_gnutls.py
bin/tests/system/isctest/log/watchlog.py
bin/tests/system/isctest/run.py
bin/tests/system/pipelined/ans5/ans.py
bin/tests/system/tcp/ans6/ans.py