tests: be more gentle in the iterate timeout loop

This change adds a small delay to the iterate timeout loop to prevent
tests from hammering the resources.

Change-Id: I670074c710496bf467bbed40ea042dc1b1f615c6
This commit is contained in:
Tristan Cacqueray 2019-03-25 02:58:36 +00:00
parent 2822aa27ab
commit e1d3ac21d3
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def iterate_timeout(max_seconds, purpose):
while (time.time() < start + max_seconds):
count += 1
yield count
time.sleep(0)
time.sleep(0.01)
raise Exception("Timeout waiting for %s" % purpose)