Skip to content

Commit 51ceda7

Browse files
committed
Update test_runner.py
1 parent cdd16bb commit 51ceda7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

codeflash/verification/test_runner.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from codeflash.cli_cmds.console import logger
99
from codeflash.code_utils.code_utils import custom_addopts, get_run_tmp_file
1010
from codeflash.code_utils.compat import IS_POSIX, SAFE_SYS_EXECUTABLE
11-
from codeflash.code_utils.config_consts import get_total_looping_time
11+
from codeflash.code_utils.config_consts import TOTAL_LOOPING_TIME_EFFECTIVE
1212
from codeflash.code_utils.coverage_utils import prepare_coverage_files
1313
from codeflash.models.models import TestFiles, TestType
1414

@@ -37,7 +37,6 @@ def run_behavioral_tests(
3737
pytest_timeout: int | None = None,
3838
pytest_cmd: str = "pytest",
3939
verbose: bool = False,
40-
pytest_target_runtime_seconds: int = get_total_looping_time(),
4140
enable_coverage: bool = False,
4241
) -> tuple[Path, subprocess.CompletedProcess, Path | None, Path | None]:
4342
if test_framework == "pytest":
@@ -66,7 +65,6 @@ def run_behavioral_tests(
6665
"--codeflash_loops_scope=session",
6766
"--codeflash_min_loops=1",
6867
"--codeflash_max_loops=1",
69-
f"--codeflash_seconds={pytest_target_runtime_seconds}", # TODO : This is unnecessary, update the plugin to not ask for this
7068
]
7169

7270
result_file_path = get_run_tmp_file(Path("pytest_results.xml"))
@@ -151,7 +149,6 @@ def run_line_profile_tests(
151149
cwd: Path,
152150
test_framework: str,
153151
*,
154-
pytest_target_runtime_seconds: float = get_total_looping_time(),
155152
verbose: bool = False,
156153
pytest_timeout: int | None = None,
157154
pytest_min_loops: int = 5, # noqa: ARG001
@@ -186,7 +183,6 @@ def run_line_profile_tests(
186183
"--codeflash_loops_scope=session",
187184
"--codeflash_min_loops=1",
188185
"--codeflash_max_loops=1",
189-
f"--codeflash_seconds={pytest_target_runtime_seconds}",
190186
]
191187
result_file_path = get_run_tmp_file(Path("pytest_results.xml"))
192188
result_args = [f"--junitxml={result_file_path.as_posix()}", "-o", "junit_logging=all"]
@@ -237,7 +233,7 @@ def run_benchmarking_tests(
237233
cwd: Path,
238234
test_framework: str,
239235
*,
240-
pytest_target_runtime_seconds: float = get_total_looping_time(),
236+
pytest_target_runtime_seconds: float = TOTAL_LOOPING_TIME_EFFECTIVE,
241237
verbose: bool = False,
242238
pytest_timeout: int | None = None,
243239
pytest_min_loops: int = 5,

0 commit comments

Comments
 (0)