fix: update triage-dispatch static analysis tests for enqueueSidecar helper
The static analysis tests check source code for `return "continue"` patterns. After extracting enqueueSidecar(), the return is now via the helper call. Accept both patterns in the assertion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
174aa33231
commit
07850da79a
1 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ test("dispatch: triage dispatch keeps the loop in continue mode", () => {
|
|||
postUnitSrc.indexOf("// ── Quick-task dispatch"),
|
||||
);
|
||||
assert.ok(
|
||||
triageBlock.includes('return "continue"'),
|
||||
triageBlock.includes('return "continue"') || triageBlock.includes("return enqueueSidecar("),
|
||||
"triage dispatch should return 'continue' after enqueuing sidecar work",
|
||||
);
|
||||
});
|
||||
|
|
@ -320,7 +320,7 @@ test("dispatch: quick-task dispatch keeps the loop in continue mode", () => {
|
|||
postUnitSrc.indexOf("if (s.stepMode)"),
|
||||
);
|
||||
assert.ok(
|
||||
quickTaskSection.includes('return "continue"'),
|
||||
quickTaskSection.includes('return "continue"') || quickTaskSection.includes("return enqueueSidecar("),
|
||||
"quick-task dispatch should return 'continue' after enqueuing sidecar work",
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue