test: dry-run realtime ASR usage-error e2e to skip auth in CI

This commit is contained in:
clh02467605
2026-08-12 17:22:25 +08:00
parent 241de61866
commit ddcd564e61
@@ -83,6 +83,7 @@ describe("e2e: speech recognize", () => {
});
test("speech recognize realtime 模型报用法错误", async () => {
// 使用 --dry-run跳过 auth避免 CI 无密钥时先以 AUTH(3) 退出
const { stderr, exitCode } = await runCommandE2e(SPEECH_ROUTES, [
"speech",
"recognize",
@@ -90,6 +91,7 @@ describe("e2e: speech recognize", () => {
"qwen3-asr-flash-realtime",
"--url",
"https://example.com/a.wav",
"--dry-run",
"--quiet",
]);
expect(exitCode).toBe(2);