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 test/test_crew_log_writer_lanes.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,12 @@ def advance(seconds: float) -> None:
assert home.steps(unit) == []
finally:
release.set()
wait_until(lambda: home.steps(unit) == [1])
from kiro_crew.crew_log.writer_groups import PROCESS_HOLDS

# Step 1 lands in the file BEFORE the retired lane lets the unit go (it finishes the
# batch's bookkeeping first). A flush in that window spends its whole fake-clock
# budget against a held unit and returns False, so wait for the hold itself.
wait_until(lambda: home.steps(unit) == [1] and unit not in PROCESS_HOLDS.held())
assert rebuilt.flush(timeout=default_timeout())
assert home.steps(unit) == [1, 2]
assert home.max_inside_one_unit == 1
Expand Down
Loading