Skip to content

Commit 576f58c

Browse files
committed
debug
1 parent 26b738f commit 576f58c

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import subprocess
1010
import unittest
1111
from collections import defaultdict
12-
from concurrent.futures import ProcessPoolExecutor, as_completed
1312
from pathlib import Path
1413
from typing import TYPE_CHECKING, Callable, Optional
1514

@@ -435,22 +434,12 @@ def process_test_files(
435434

436435
function_to_test_map = defaultdict(set)
437436

438-
with (
439-
test_files_progress_bar(total=len(file_to_test_map), description="Processing test files") as (
440-
progress,
441-
task_id,
442-
),
443-
ProcessPoolExecutor() as executor,
437+
with test_files_progress_bar(total=len(file_to_test_map), description="Processing test files") as (
438+
progress,
439+
task_id,
444440
):
445-
future_to_file = {
446-
executor.submit(
447-
_process_single_test_file, test_file, functions, project_root_path, test_framework
448-
): test_file
449-
for test_file, functions in file_to_test_map.items()
450-
}
451-
452-
for future in as_completed(future_to_file):
453-
_, local_results = future.result()
441+
for test_file, functions in file_to_test_map.items():
442+
_, local_results = _process_single_test_file(test_file, functions, project_root_path, test_framework)
454443

455444
for qualified_name, function_called_in_test in local_results:
456445
function_to_test_map[qualified_name].add(function_called_in_test)

0 commit comments

Comments
 (0)