]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Ensure wait_for_line() is not called with timeout=0
authorMichał Kępień <michal@isc.org>
Tue, 19 Dec 2023 10:10:04 +0000 (11:10 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 22 Dec 2023 14:02:58 +0000 (15:02 +0100)
bin/tests/system/isctest/log.py

index 38c11438217046d12c501d46374097e5924c3e18..8a382626c0baa3ed6d0222032f901a52f430b0c3 100644 (file)
@@ -227,6 +227,7 @@ class WatchLog(abc.ABC):
         if not self._fd:
             raise WatchLogException("No file to watch")
         leftover = ""
+        assert timeout, "Do not use this class unless you want to WAIT for something."
         deadline = time.time() + timeout
         while time.time() < deadline:
             for line in self._fd.readlines():