Skip to content

Commit 556fb51

Browse files
committed
Update discover_unit_tests.py
1 parent bf9380c commit 556fb51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ def filter_test_files_by_imports(
336336
)
337337
return filtered_map
338338

339-
340339
def discover_unit_tests(
341340
cfg: TestConfig,
342341
discover_only_these_tests: list[Path] | None = None,
@@ -506,6 +505,8 @@ def process_test_files(
506505
cfg: TestConfig,
507506
functions_to_optimize: list[FunctionToOptimize] | None = None,
508507
) -> tuple[dict[str, set[FunctionCalledInTest]], int]:
508+
from time import sleep
509+
509510
import jedi
510511

511512
project_root_path = cfg.project_root_path
@@ -519,7 +520,7 @@ def process_test_files(
519520
num_discovered_tests = 0
520521
num_discovered_replay_tests = 0
521522
jedi_project = jedi.Project(path=project_root_path)
522-
523+
sleep(0.0001)
523524
with test_files_progress_bar(total=len(file_to_test_map), description="Processing test files") as (
524525
progress,
525526
task_id,

0 commit comments

Comments
 (0)