Heavier task in thread pool test to make sure it will pass

This commit is contained in:
shortcutme 2019-11-19 02:25:28 +01:00
parent 511587dd8b
commit 5aa115c88a
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class TestThreadPool:
def blocker():
events.append("S")
out = 0
for i in range(1000000):
for i in range(10000000):
out += 1
events.append("D")
return out
@ -23,7 +23,7 @@ class TestThreadPool:
threads.append(gevent.spawn(blocker))
gevent.joinall(threads)
assert events == ["S"] * 4 + ["D"] * 4, events
assert events == ["S"] * 4 + ["D"] * 4
res = blocker()
assert res == 1000000
assert res == 10000000