Commit 97ef58ee authored by Nathan Graule's avatar Nathan Graule 💻
Browse files

Testing all: introduce sleep before each generated call to allow time to save variables

parent 4605c363
......@@ -90,10 +90,12 @@ class TestCall(unittest.TestCase):
calls = []
for i in range(10):
def func():
_i = i
time.sleep(2 + random.random())
return i
return _i
time.sleep(.2) # Wait before going to next iteration
results = Call.all(calls).wait()
for i in range(10):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment