diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2024-09-18 16:58:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 16:58:30 +0200 |
commit | bcee35385b018e097ee0597fde4ce8063f3cd7c7 (patch) | |
tree | 5e8538aa0727663ad87c3ce4c5b36b13d0fb9842 /test | |
parent | Update communication links for the forum (#83862) (diff) | |
download | ansible-bcee35385b018e097ee0597fde4ce8063f3cd7c7.tar.xz ansible-bcee35385b018e097ee0597fde4ce8063f3cd7c7.zip |
timedout extended (#83953)
* timedout extended
* add timedout test
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/test_core/tasks/main.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/integration/targets/test_core/tasks/main.yml b/test/integration/targets/test_core/tasks/main.yml index 7c4ed65e48..0e173ac5c0 100644 --- a/test/integration/targets/test_core/tasks/main.yml +++ b/test/integration/targets/test_core/tasks/main.yml @@ -368,3 +368,18 @@ - "'files/notvault' is not vaulted_file" - "'files/vault1' is vaulted_file" - "'files/vault2' is vaulted_file" + + +- name: test timeout test + tags: + - timeout + block: + - command: sleep 5 + timeout: 3 + register: timed + ignore_errors: true + + - assert: + that: + - timed is timedout + - timed['timedout'].get('period', 0) == 3 |