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
7 changes: 6 additions & 1 deletion tests/ui/test_deployment_outcome_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,12 @@ async def snapshot(self, namespace: str, name: str) -> RawDeploymentOutcomeSnaps
reaped.set()
raise AssertionError("unreachable")

controller, ui = _controller(HungReader(), deadline_seconds=0.01)
# A frozen clock gives the run its whole deadline however late its worker
# starts (#511): with the real one, a runner slower than the deadline
# marked it elapsed before the reader was ever called. The deadline is
# still enforced by the run's real asyncio timeout, so it must outlast the
# read task's start on a coarse Windows timer.
controller, ui = _controller(HungReader(), deadline_seconds=0.5, clock=lambda: 0.0)
observer = controller.scale_observer(
epoch=4,
namespace="default",
Expand Down
Loading