Skip to content

Commit 0e00151

Browse files
committed
fix(e2e): pass placeholder API key for qwen --list-voices tests
authStage still requires a key before run(), even though the catalog is local.
1 parent e45fdcf commit 0e00151

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/commands/tests/e2e/speech-list-voices.e2e.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ describe("e2e: speech list-voices", () => {
2727
expect(stderr).toMatch(/recognize|--url|audio|model/i);
2828
});
2929

30-
// --list-voices reads the local catalog; no API key needed
30+
// --list-voices 只读本地目录,但 auth: apiKey 在 run() 前仍要求凭证
3131
test("【qwen-audio-3.0-tts-plus】获取音色列表", async () => {
3232
const { stdout, stderr, exitCode } = await runCommandE2e(SPEECH_ROUTES, [
3333
"speech",
3434
"synthesize",
3535
"--list-voices",
3636
"--model",
3737
"qwen-audio-3.0-tts-plus",
38+
"--api-key",
39+
"sk-e2e-placeholder",
3840
]);
3941
expect(exitCode, stderr).toBe(0);
4042
expect(stdout).toContain("longanlingxin");
@@ -48,6 +50,8 @@ describe("e2e: speech list-voices", () => {
4850
"--list-voices",
4951
"--model",
5052
"qwen-audio-3.0-tts-flash",
53+
"--api-key",
54+
"sk-e2e-placeholder",
5155
]);
5256
expect(exitCode, stderr).toBe(0);
5357
expect(stdout).toContain("longanfengyue");

0 commit comments

Comments
 (0)