From 06505fc521bc8cefb6264cf827c2f2faefda7a53 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 4 Feb 2019 11:42:40 +1000 Subject: [PATCH] add pause to make test more stable (#51680) (cherry picked from commit ebc9e4caf7cb8038ac9e4f1be885bb53dce1ed65) --- test/integration/targets/file/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/targets/file/tasks/main.yml b/test/integration/targets/file/tasks/main.yml index e8ac8a1c4d2..dfdada0b318 100644 --- a/test/integration/targets/file/tasks/main.yml +++ b/test/integration/targets/file/tasks/main.yml @@ -498,6 +498,9 @@ stat: path=/tmp/write_utime register: previous_time + - name: pause for 1 second to ensure the next touch is newer + pause: seconds=1 + - name: touch file as nobody file: dest=/tmp/write_utime state=touch become: True