Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/scheduler/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ async def resolve(self, request: MockRequest, request_info, request_history):
yield f"response_for_{request.payload}", request_info


@pytest.mark.xfail(reason="old and broken", run=False)
@pytest.mark.smoke
@pytest.mark.asyncio
@async_timeout(10.0)
Expand Down Expand Up @@ -122,7 +121,7 @@ async def test_scheduler_run_integration(
received_updates = defaultdict(list)
received_responses = []
last_state = None
num_requests = 50
num_requests = 100

async for resp, req, info, state in scheduler.run(
requests=[MockRequest(payload=f"req_{ind}") for ind in range(num_requests)],
Expand Down Expand Up @@ -177,4 +176,5 @@ def _request_indices():
assert statuses in (
["queued", "in_progress", "completed"],
["queued", "in_progress", "errored"],
["queued", "pending", "in_progress"],
)
4 changes: 1 addition & 3 deletions tests/unit/scheduler/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def test_initialization(self, valid_instances):
assert id(instance1) == id(instance2)
assert hasattr(instance1, "thread_lock")

@pytest.mark.xfail(reason="old and broken", run=False)
@pytest.mark.smoke
@pytest.mark.asyncio
@async_timeout(10.0)
Expand All @@ -164,6 +163,7 @@ async def test_run_basic_functionality(
requests=requests,
backend=backend,
strategy=strategy,
startup_duration=0.1,
env=env,
**constraint_args,
):
Expand All @@ -174,7 +174,6 @@ async def test_run_basic_functionality(
assert all(isinstance(r[2], RequestInfo) for r in results)
assert all(isinstance(r[3], SchedulerState) for r in results)

@pytest.mark.xfail(reason="old and broken", run=False)
@pytest.mark.smoke
@pytest.mark.asyncio
@async_timeout(10.0)
Expand Down Expand Up @@ -219,7 +218,6 @@ async def test_run_invalid_parameters(self, valid_instances):
):
pass

@pytest.mark.xfail(reason="old and broken", run=False)
@pytest.mark.smoke
@pytest.mark.asyncio
@async_timeout(10.0)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_cli_backend_args_header_removal(mock_benchmark_func, tmp_path: Path):
# Assert that benchmark_with_scenario was called with the correct scenario
mock_benchmark_func.assert_called_once()
call_args = mock_benchmark_func.call_args[1]
scenario = call_args["scenario"]
scenario = call_args["args"]

# Verify the backend_args were merged correctly
backend_args = scenario.backend_kwargs
Expand Down
Loading