Skip to content

Commit 278822b

Browse files
committed
pass --async to E2E
1 parent 62bea9e commit 278822b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/scripts/end_to_end_test_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def run_test(expected_improvement_pct: int) -> bool:
99
file_path="main.py",
1010
expected_unit_tests=0,
1111
min_improvement_x=0.1,
12+
enable_async=True,
1213
coverage_expectations=[
1314
CoverageExpectation(
1415
function_name="retry_with_backoff",

tests/scripts/end_to_end_test_utilities.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class TestConfig:
2727
trace_mode: bool = False
2828
coverage_expectations: list[CoverageExpectation] = field(default_factory=list)
2929
benchmarks_root: Optional[pathlib.Path] = None
30+
enable_async: bool = False
3031

3132

3233
def clear_directory(directory_path: str | pathlib.Path) -> None:
@@ -132,6 +133,8 @@ def build_command(
132133
)
133134
if benchmarks_root:
134135
base_command.extend(["--benchmark", "--benchmarks-root", str(benchmarks_root)])
136+
if config.enable_async:
137+
base_command.append("--async")
135138
return base_command
136139

137140

0 commit comments

Comments
 (0)