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:
parent
6ddf3dbb9c
commit
7451fdd1e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue