summaryrefslogtreecommitdiff
path: root/tests/parallelize_itest.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-30 22:09:43 -0800
committerScott <[email protected]>2022-01-30 22:09:43 -0800
commitf2b4fe83f6fc853a68653bd5e3d9fe0648c3d105 (patch)
tree8f55afb20c672410c3d02af4e57096163d7bdd2f /tests/parallelize_itest.py
parent865825894beeedd47d26dd092d40bfee582f5475 (diff)
Fix a recent bug in executors. Thread executor needs to return
its future.
Diffstat (limited to 'tests/parallelize_itest.py')
-rwxr-xr-xtests/parallelize_itest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/parallelize_itest.py b/tests/parallelize_itest.py
index 11c5676..6ac9538 100755
--- a/tests/parallelize_itest.py
+++ b/tests/parallelize_itest.py
@@ -37,7 +37,8 @@ def compute_factorial_remote(n):
def test_thread_parallelization() -> None:
results = []
for _ in range(50):
- results.append(compute_factorial_thread(_))
+ f = compute_factorial_thread(_)
+ results.append(f)
smart_future.wait_all(results)
for future in results:
print(f'Thread: {future}')