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
3 changes: 3 additions & 0 deletions lab/internal/ui/sync_render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func TestSyncRenderStartIntakeRefusedWhenTheIssueClosedMeanwhile(t *testing.T) {
}
// An open Issue starts.
viewOf[RunJobView](t, do(t, h, gatePost("/api/runs", `{"issue":9}`)), http.StatusAccepted)
waitJob(t, h, runKey(9))
if n := d.calls(); n != 1 {
t.Fatalf("an open Issue did not start: %d engine calls", n)
}
Expand Down Expand Up @@ -309,6 +310,7 @@ func TestSyncRenderStartIntakeEnforcesTheStartableRule(t *testing.T) {
}
// A row the Issues view shows startable starts.
viewOf[RunJobView](t, do(t, h, gatePost("/api/runs", `{"issue":5}`)), http.StatusAccepted)
waitJob(t, h, runKey(5))
if n := d.calls(); n != 1 {
t.Fatalf("row 5 did not start: %d engine calls", n)
}
Expand Down Expand Up @@ -380,6 +382,7 @@ func TestSyncRenderStartIntakeNeedsASnapshotFromAfterItBegan(t *testing.T) {
// Same clock: the forced read is from after the start and Issue 1 starts.
h.(*handler).forge.now = clk.now
viewOf[RunJobView](t, do(t, h, gatePost("/api/runs", `{"issue":1}`)), http.StatusAccepted)
waitJob(t, h, runKey(1))
if n := d.calls(); n != 1 {
t.Fatalf("a current read did not start: %d engine calls", n)
}
Expand Down
Loading