diff --git a/apps/server/src/orchestration-v2/runtimeLayer.test.ts b/apps/server/src/orchestration-v2/runtimeLayer.test.ts index 9b928dceda591..6543193172258 100644 --- a/apps/server/src/orchestration-v2/runtimeLayer.test.ts +++ b/apps/server/src/orchestration-v2/runtimeLayer.test.ts @@ -5384,9 +5384,11 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => { yield* worker.drain(); const wakes = (yield* texts).slice(before); assert.equal(wakes.length, names.length === 0 ? 0 : 1); + // The finished section lists every failing check, so only the failed one counts here. + const failedSections = wakes.map((text) => text.split("- Every check has finished")[0]!); for (const name of ["lint", "test"]) { assert.equal( - wakes.some((text) => text.includes(` - ${name}`)), + failedSections.some((text) => text.includes(` - ${name}`)), names.includes(name as never), `read ${index} told ${name}`, ); @@ -5748,7 +5750,7 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => { e2e = "success"; yield* TestClock.adjust("10 minutes"); yield* reactor.sweep; - assert.deepEqual(yield* summaries, []); + assert.deepEqual(yield* summaries, ["#17: checks finished; #18: checks finished"]); assert.isFalse(yield* checksPending); // A push clears the answer while a read with news is in flight. That read's answer is the @@ -5777,7 +5779,7 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => { gate = null; yield* Deferred.succeed(release, undefined); yield* Fiber.join(inFlight); - assert.lengthOf(yield* summaries, 1); + assert.lengthOf(yield* summaries, 2); assert.isUndefined(yield* checksPending); // The next sweep reads it again though nothing on the host changed.