projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a simple test for waitable presence.
[python_utils.git]
/
tests
/
parallelize_itest.py
diff --git
a/tests/parallelize_itest.py
b/tests/parallelize_itest.py
index 6ac95380c5a9a132fb7c43172d1a30d0ce59e2ee..d09e9f39acb95db3f7a592d182aa046c6306ac20 100755
(executable)
--- a/
tests/parallelize_itest.py
+++ b/
tests/parallelize_itest.py
@@
-3,9
+3,9
@@
import sys
import bootstrap
import sys
import bootstrap
-import parallelize as p
import decorator_utils
import executors
import decorator_utils
import executors
+import parallelize as p
import smart_future
import smart_future
@@
-60,7
+60,7
@@
def test_process_parallelization() -> None:
@decorator_utils.timed
def test_remote_parallelization() -> None:
results = []
@decorator_utils.timed
def test_remote_parallelization() -> None:
results = []
- for _ in range(
5
0):
+ for _ in range(
1
0):
results.append(compute_factorial_remote(_))
for result in smart_future.wait_any(results):
print(result)
results.append(compute_factorial_remote(_))
for result in smart_future.wait_any(results):
print(result)