Make streaming test run longer than connection timeout

This is an attempt to make the existing streaming log test more robust
based on observed behavior in the wild. Basically we need to make sure
that if nothing is logged for longer than our streaming connection
timeout that we still get all the data.

Change-Id: I0a60c92d8a75dac195f6b85de379b612a2148e37
This commit is contained in:
Clark Boylan 2018-06-05 11:43:23 -07:00 committed by Tobias Henkel
parent 6ddf3dbb9c
commit 7451fdd1e8
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@
- name: Show contents of first file
command: "cat {{ ansible_user_dir }}/command_test_file1"
- name: Show contents of second file
command: "cat {{ ansible_user_dir }}/command_test_file2"
# We use a sleep here to ensure that we log even after
# a period of no logging.
shell: "sleep 6 && cat {{ ansible_user_dir }}/command_test_file2"
# Test a task with a handler
- name: Run a command with notifying a handler