From 50e638b328c0c5ac3a4b809c3359db13e7918548 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Thu, 30 Jun 2016 13:51:01 +0200 Subject: [PATCH] Fix another test race in test_update_restricted We fixed 2 tests that were intermittently failing because of timestamp resolution, but it can happen on the 3rd one as well. Change-Id: Ic916b79a81000684b04c585eef1227255a949172 Related-Bug: #1554375 --- heat_integrationtests/functional/test_update_restricted.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heat_integrationtests/functional/test_update_restricted.py b/heat_integrationtests/functional/test_update_restricted.py index d406b53e99..7087c0c410 100644 --- a/heat_integrationtests/functional/test_update_restricted.py +++ b/heat_integrationtests/functional/test_update_restricted.py @@ -73,6 +73,9 @@ class UpdateRestrictedStackTest(functional_base.FunctionalTestsBase): self._check_for_restriction_reason(resource_events, reason_update_restrict)) + # Ensure the timestamp changes, since this will be very quick + time.sleep(1) + # check update succeeds - with only 'replace' restricted self.update_stack(stack_identifier, update_template, env_replace_restrict,