From 494609866b7d0df6813083224ecb77425632694e Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 13 Oct 2026 14:41:07 +0800 Subject: [PATCH] cli tests: TestAgentQwenDefault expects the model's name as Names in agents' lists gives it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6fa3109ea made Qwen's modelProviders entry name the model as provider.Labels does ("m · A"), not "magpie/a/m", and ran agent, gui and provider but not internal/cli, whose TestAgentQwenDefault still asked for the old name. main has been red on ubuntu and macOS since (run for 9492e5db8). The entry is still found by its id, which the test checks too. Run: go test -tags nogui -count=1 ./internal/cli (ok, 145s); gofmt -l clean. On origin/main before this change the same test failed with "name": "magpie/a/m" missing. --- internal/cli/qwen_cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/qwen_cli_test.go b/internal/cli/qwen_cli_test.go index dce38bddf..78d525a0c 100644 --- a/internal/cli/qwen_cli_test.go +++ b/internal/cli/qwen_cli_test.go @@ -46,7 +46,7 @@ func TestAgentQwenDefault(t *testing.T) { t.Fatal(err) } s := read() - for _, want := range []string{`"id": "a/m"`, `"name": "magpie/a/m"`, `"MAGPIE_QWEN_API_KEY"`, `"selectedType": "openai"`, `"baseUrl": "https://idealab.example.com/v1"`, `"outputLanguage": "zh-CN"`} { + for _, want := range []string{`"id": "a/m"`, `"name": "m · A"`, `"MAGPIE_QWEN_API_KEY"`, `"selectedType": "openai"`, `"baseUrl": "https://idealab.example.com/v1"`, `"outputLanguage": "zh-CN"`} { if !strings.Contains(s, want) { t.Fatalf("not wired (%s missing):\n%s", want, s) }