@devries-cameron20 / t3code-1 / commits / 205400e778
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(server): expect the checks-finished wake in PR watch runtime tests (#39646)

Julius Marminge committed Nov 20, 2026 at 02:35 UTC 205400e77859449b0a1568375fc9c606d4f0af34
1 file changed +5 -3
apps/server/src/orchestration-v2/runtimeLayer.test.ts
+5 -3
@@ -5384,9 +5384,11 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => {
5384 yield* worker.drain();
5385 const wakes = (yield* texts).slice(before);
5386 assert.equal(wakes.length, names.length === 0 ? 0 : 1);
5387 + // The finished section lists every failing check, so only the failed one counts here.
5388 + const failedSections = wakes.map((text) => text.split("- Every check has finished")[0]!);
5389 for (const name of ["lint", "test"]) {
5390 assert.equal(
5389 - wakes.some((text) => text.includes(` - ${name}`)),
5391 + failedSections.some((text) => text.includes(` - ${name}`)),
5392 names.includes(name as never),
5393 `read ${index} told ${name}`,
5394 );
@@ -5748,7 +5750,7 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => {
5750 e2e = "success";
5751 yield* TestClock.adjust("10 minutes");
5752 yield* reactor.sweep;
5751 - assert.deepEqual(yield* summaries, []);
5753 + assert.deepEqual(yield* summaries, ["#17: checks finished; #18: checks finished"]);
5754 assert.isFalse(yield* checksPending);
5755
5756 // 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) => {
5779 gate = null;
5780 yield* Deferred.succeed(release, undefined);
5781 yield* Fiber.join(inFlight);
5780 - assert.lengthOf(yield* summaries, 1);
5782 + assert.lengthOf(yield* summaries, 2);
5783 assert.isUndefined(yield* checksPending);
5784
5785 // The next sweep reads it again though nothing on the host changed.