From 114ebe643ee9427b7378f65f3a51c202de360fe6 Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Sun, 15 Nov 2026 00:57:22 +0800 Subject: [PATCH] Assert the lease source probe returned an observation Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> (cherry picked from commit 2c099be41e6878298ae273de28b983fc2c205700) Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- tests/control_plane_ts/coordination_runtime_shadow.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/control_plane_ts/coordination_runtime_shadow.test.ts b/tests/control_plane_ts/coordination_runtime_shadow.test.ts index c59a4bd26c..2050a0a27e 100644 --- a/tests/control_plane_ts/coordination_runtime_shadow.test.ts +++ b/tests/control_plane_ts/coordination_runtime_shadow.test.ts @@ -377,7 +377,9 @@ for (const scenario of [ ]), ], {encoding: "utf8", timeout: 60_000}); assert.equal(result.status, 0, result.stderr); - const observed = JSON.parse(result.stdout.trim().split("\n").at(-1)); + const resultLine = result.stdout.trim().split("\n").at(-1); + assert.ok(resultLine, "the source lease probe must report its observation"); + const observed = JSON.parse(resultLine); assert.equal(observed.status === "failed" ? observed.reason_code : observed.status, scenario.expected); const passes = scenario.expected === "applied" ? 2 : 1; assert.equal(observed.lstatCalls, 2 * passes);