fix(cli): update schedule provider/mode error message substring in test

The error message gained a `--mode` mention when the schedule mode flag
landed; the existing CLI integration test still asserted on the old
exact-prefix substring and broke main CI for all PR builds.
This commit is contained in:
Mohamed Boudra
2026-05-05 19:56:51 +07:00
parent 14c33aad0b
commit 4b260eb516
+1 -1
View File
@@ -118,7 +118,7 @@ try {
assert.notStrictEqual(result.exitCode, 0, "should fail for self target with provider");
const output = result.stdout + result.stderr;
assert(
output.includes("--provider can only be used with a new-agent target"),
output.includes("can only be used with a new-agent target"),
"should explain provider target mismatch",
);
console.log("schedule rejects provider with self target\n");