Skip to content

Commit ab26dbf

Browse files
fix(tui): update picker_test for switchProviderModel 4-value return
#568 added a bool return to switchProviderModel (model, string, bool, tea.Cmd) and updated every call site except picker_test.go:771, which still assigned three values. That broke the internal/tui test build and turned Smoke red on main. Add the missing receiver here.
1 parent 6eb4b89 commit ab26dbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/tui/picker_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ func TestSwitchProviderModelRecordsRecentHistory(t *testing.T) {
768768
},
769769
})
770770

771-
next, status, _ := m.switchProviderModel("ollama", "kimi-k2.7-code:cloud")
771+
next, status, _, _ := m.switchProviderModel("ollama", "kimi-k2.7-code:cloud")
772772
wantStatus := "Model\nSwitched to ollama · kimi-k2.7-code:cloud"
773773
if status != wantStatus {
774774
t.Fatalf("switchProviderModel() status = %q, want %q (a mismatch here means the switch itself failed, not the recentModels assertion below)", status, wantStatus)

0 commit comments

Comments
 (0)