summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2024-09-18 16:58:30 +0200
committerGitHub <noreply@github.com>2024-09-18 16:58:30 +0200
commitbcee35385b018e097ee0597fde4ce8063f3cd7c7 (patch)
tree5e8538aa0727663ad87c3ce4c5b36b13d0fb9842 /test
parentUpdate communication links for the forum (#83862) (diff)
downloadansible-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.yml15
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