diff options
author | Matt Clay <matt@mystile.com> | 2023-05-10 20:04:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 20:04:41 -0700 |
commit | 1141376de53c423c8f317deeaee064d05c7b31bf (patch) | |
tree | c7c87c612e503512196a162ceb1ab6d9d8ee619b | |
parent | 9ce8eb56beac4dcc138d14948003b0792be5ecd5 (diff) | |
download | ansible-1141376de53c423c8f317deeaee064d05c7b31bf.tar.gz |
[stable-2.13] ansible-test - Fix handling of long timeouts (#80769) (#80774)
(cherry picked from commit aacab0633a963e7a89fc1e6ac71cdf06553f96ab)
-rw-r--r-- | changelogs/fragments/ansible-test-long-timeout-fix.yml | 2 | ||||
-rw-r--r-- | test/lib/ansible_test/_internal/timeout.py | 2 |
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 341cb8fd4f..2fb2f44a27 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): # type: (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() |