From 65983ec2e03c97ca44e6374b226f796413bdc637 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 3 Feb 2022 15:42:44 -0800 Subject: [PATCH] Make the parallelize intergration test short enough to run at checkin time and enable it. --- tests/parallelize_itest.py | 4 ++-- tests/run_tests.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/parallelize_itest.py b/tests/parallelize_itest.py index 6ac9538..d09e9f3 100755 --- a/tests/parallelize_itest.py +++ b/tests/parallelize_itest.py @@ -3,9 +3,9 @@ import sys import bootstrap -import parallelize as p import decorator_utils import executors +import parallelize as p import smart_future @@ -60,7 +60,7 @@ def test_process_parallelization() -> None: @decorator_utils.timed def test_remote_parallelization() -> None: results = [] - for _ in range(50): + for _ in range(10): results.append(compute_factorial_remote(_)) for result in smart_future.wait_any(results): print(result) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 016ac44..6255a69 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -143,8 +143,8 @@ fi if [ ${INTEGRATION} -eq 1 ]; then for test in $(find ${ROOT} -name "*_itest.py" -print); do BASE=$(basename ${test}) - BASE="${BASE} (integration test)" - make_header "${BASE}" "${ORANGE}" + HDR="${BASE} (integration test)" + make_header "${HDR}" "${ORANGE}" if [ ${COVERAGE} -eq 1 ]; then coverage run --source ${HOME}/lib --append ${test} else -- 2.45.2