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-04 15:31:23 +07:00
parent 2064bac918
commit ae3f1bb5df
+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");