summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-05-15 13:54:25 -0700
committerGitHub <noreply@github.com>2023-05-15 13:54:25 -0700
commit6bce05fd4df6b04ba4be567b211d5bda0a6e5536 (patch)
tree22c96da93472f495a857a72366027aa986c58dbe
parent398841ba0db7cef03801187777cfd011a9b8970d (diff)
downloadansible-6bce05fd4df6b04ba4be567b211d5bda0a6e5536.tar.gz
[stable-2.15] ansible-test - Fix handling of long timeouts (#80769) (#80772)
(cherry picked from commit aacab0633a963e7a89fc1e6ac71cdf06553f96ab)
-rw-r--r--changelogs/fragments/ansible-test-long-timeout-fix.yml2
-rw-r--r--test/lib/ansible_test/_internal/timeout.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/ansible-test-long-timeout-fix.yml b/changelogs/fragments/ansible-test-long-timeout-fix.yml
new file mode 100644
index 0000000000..1fdf2c09fe
--- /dev/null
+++ b/changelogs/fragments/ansible-test-long-timeout-fix.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - ansible-test - Fix handling of timeouts exceeding one day.
diff --git a/test/lib/ansible_test/_internal/timeout.py b/test/lib/ansible_test/_internal/timeout.py
index 96c0d73d21..2c57d4cf82 100644
--- a/test/lib/ansible_test/_internal/timeout.py
+++ b/test/lib/ansible_test/_internal/timeout.py
@@ -125,6 +125,6 @@ def configure_test_timeout(args: TestConfig) -> None:
signal.signal(signal.SIGUSR1, timeout_handler)
- instance = WrappedThread(functools.partial(timeout_waiter, timeout_remaining.seconds))
+ instance = WrappedThread(functools.partial(timeout_waiter, timeout_remaining.total_seconds()))
instance.daemon = True
instance.start()