Skip to content
Merged
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
6 changes: 4 additions & 2 deletions tests/test_openai_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ def test_openai_compatible_server_waits_for_missing_earlier_generation_order() -
session=backend,
model_name="fake-model",
max_batch_size=2,
batch_window_s=0.05,
# Keep a wider window so slow CI schedulers still observe the delayed earlier
# request within the same first refill stream.
batch_window_s=0.2,
) as server:
batcher = server._generate_batcher
assert batcher is not None
Expand All @@ -294,7 +296,7 @@ def submit(prompt: str, order_index: int, *, delay_s: float = 0.0) -> str:
futures = [
executor.submit(submit, "one", 1),
executor.submit(submit, "two", 2),
executor.submit(submit, "zero", 0, delay_s=0.01),
executor.submit(submit, "zero", 0, delay_s=0.02),
]
outputs = [future.result() for future in futures]

Expand Down