From 5aa115c88acda0baa3951ffe9c74a8ed110309ca Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 19 Nov 2019 02:25:28 +0100 Subject: [PATCH] Heavier task in thread pool test to make sure it will pass --- src/Test/TestThreadPool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Test/TestThreadPool.py b/src/Test/TestThreadPool.py index b237d93a..6e081206 100644 --- a/src/Test/TestThreadPool.py +++ b/src/Test/TestThreadPool.py @@ -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