fix(k1): stabilize live recovery and media admission
This commit is contained in:
@@ -295,6 +295,25 @@ test("raw replay exercises the same streaming receiver lifecycle as a live scan"
|
||||
);
|
||||
});
|
||||
|
||||
test("pending K1 STOP keeps the live Rerun source mounted until local capture ends", async () => {
|
||||
const source = await readFile(
|
||||
new URL("../src/workspaces/Workspaces.tsx", import.meta.url),
|
||||
"utf8",
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/const intentionalSourceEnd = !recordedSource &&\s*state\?\.sourceMode === "idle" && \[/,
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/"awaiting_external_stop",\s*"stopping",\s*"finalizing",\s*"completed",/,
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
source,
|
||||
/const intentionalSourceEnd = !recordedSource && \[\s*"awaiting_external_stop"/,
|
||||
);
|
||||
});
|
||||
|
||||
test("the spatial header reports raw replay as an active source", async () => {
|
||||
const source = await readFile(
|
||||
new URL("../src/App.tsx", import.meta.url),
|
||||
|
||||
Reference in New Issue
Block a user