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
This commit is contained in:
Thomas Herve 2016-06-30 13:51:01 +02:00
parent 61f09f5232
commit 50e638b328
1 changed files with 3 additions and 0 deletions

View File

@ -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,