From 35f6bbf18bdaf881b794ca1150b3ac639ee7faea Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 23 Jul 2018 05:16:22 +1000 Subject: [PATCH] win_wait_for: add a bit more stability to the tests (#43114) --- test/integration/targets/win_wait_for/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/targets/win_wait_for/tasks/main.yml b/test/integration/targets/win_wait_for/tasks/main.yml index 292401c7741..4e4401c9d50 100644 --- a/test/integration/targets/win_wait_for/tasks/main.yml +++ b/test/integration/targets/win_wait_for/tasks/main.yml @@ -272,6 +272,12 @@ that: - wait_for_port_already_started.wait_attempts == 1 +# add a manual wait to make sure the port is truly offline for next test +- name: wait for port to be offline + win_wait_for: + port: '{{test_win_wait_for_port}}' + state: stopped + - name: wait for port that is already offline win_wait_for: port: '{{test_win_wait_for_port}}'