0001-tests-fix-test_store_async-8847.patch
tests/test_storage.py | ||
---|---|---|
332 | 332 |
test.unique_value = 'unique-value' |
333 | 333 |
test.store(async=True) |
334 | 334 |
t0 = time.time() |
335 |
while not Foobar.keys():
|
|
335 |
while True:
|
|
336 | 336 |
time.sleep(0.1) |
337 |
try: |
|
338 |
test = Foobar.get(1) |
|
339 |
break |
|
340 |
except KeyError: |
|
341 |
pass |
|
337 | 342 |
if time.time()-t0 > 2: |
338 | 343 |
raise Exception('timeout') |
339 | 344 |
test = Foobar.get(1) |
340 |
- |