diff options
| author | Scott <[email protected]> | 2022-01-30 22:09:43 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-30 22:09:43 -0800 |
| commit | f2b4fe83f6fc853a68653bd5e3d9fe0648c3d105 (patch) | |
| tree | 8f55afb20c672410c3d02af4e57096163d7bdd2f /tests | |
| parent | 865825894beeedd47d26dd092d40bfee582f5475 (diff) | |
Fix a recent bug in executors. Thread executor needs to return
its future.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/parallelize_itest.py | 3 |
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}') |
