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:
parent
2822aa27ab
commit
e1d3ac21d3
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue