From eb72b06fe8e62cb77af73f6dc558d384a5a5fe80 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 19 Sep 2025 22:52:48 +0300 Subject: fix --- internal/lsp/completion_codex_path_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/lsp/completion_codex_path_test.go') diff --git a/internal/lsp/completion_codex_path_test.go b/internal/lsp/completion_codex_path_test.go index bd3b3f4..6c0a60f 100644 --- a/internal/lsp/completion_codex_path_test.go +++ b/internal/lsp/completion_codex_path_test.go @@ -40,6 +40,7 @@ func (f *fakeCodeLLM) DefaultModel() string { return "m" } func TestTryLLMCompletion_PrefersCodeCompleterOverChat(t *testing.T) { s := &Server{maxTokens: 32, triggerChars: []string{"."}, compCache: make(map[string]string)} + initServerDefaults(s) fake := &fakeCodeLLM{result: "DoThing()"} s.llmClient = fake line := "obj." @@ -58,6 +59,7 @@ func TestTryLLMCompletion_PrefersCodeCompleterOverChat(t *testing.T) { func TestTryLLMCompletion_FallsBackToChatOnCodeCompleterError(t *testing.T) { s := &Server{maxTokens: 32, triggerChars: []string{"."}, compCache: make(map[string]string)} + initServerDefaults(s) fake := &fakeCodeLLM{result: "DoThing()", codeErr: errors.New("boom")} s.llmClient = fake line := "obj." -- cgit v1.2.3