diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-28 00:20:05 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-28 00:20:05 +0300 |
| commit | 0ac2d186e84f77d73d924e2c0ce975a17c3a8078 (patch) | |
| tree | 49f3e2def38449544e1d67f047cbcb4aab802658 /internal/lsp/debounce_throttle_test.go | |
| parent | 51b2621d58633aa5c0f5cc7b64616d70d41acc91 (diff) | |
Improve multi-provider completion streaming and CLI selector flags
Diffstat (limited to 'internal/lsp/debounce_throttle_test.go')
| -rw-r--r-- | internal/lsp/debounce_throttle_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/lsp/debounce_throttle_test.go b/internal/lsp/debounce_throttle_test.go index 81a2c1a..7efd439 100644 --- a/internal/lsp/debounce_throttle_test.go +++ b/internal/lsp/debounce_throttle_test.go @@ -37,7 +37,7 @@ func TestCompletionDebounce_WaitsUntilQuiet(t *testing.T) { p.Context = json.RawMessage([]byte(`{"triggerKind":1}`)) start := time.Now() - _, ok := s.tryLLMCompletion(p, "", line, "", "", "", false, "") + _, ok, _ := s.tryLLMCompletion(p, "", line, "", "", "", false, "") if !ok { t.Fatalf("expected ok=true") } @@ -65,7 +65,7 @@ func TestCompletionThrottle_SerializesCalls(t *testing.T) { p := CompletionParams{Position: Position{Line: 0, Character: len(line)}, TextDocument: TextDocumentIdentifier{URI: "file://throttle.go"}} p.Context = json.RawMessage([]byte(`{"triggerKind":1}`)) start := time.Now() - if _, ok := s.tryLLMCompletion(p, "", line, "", "", "", false, ""); !ok { + if _, ok, _ := s.tryLLMCompletion(p, "", line, "", "", "", false, ""); !ok { t.Fatalf("first call expected ok=true") } if f1.t.IsZero() { @@ -77,7 +77,7 @@ func TestCompletionThrottle_SerializesCalls(t *testing.T) { s.compCache = make(map[string]string) f2 := &timeLLM{} s.llmClient = f2 - if _, ok := s.tryLLMCompletion(p, "", line, "", "", "", false, ""); !ok { + if _, ok, _ := s.tryLLMCompletion(p, "", line, "", "", "", false, ""); !ok { t.Fatalf("second call expected ok=true") } if f2.t.IsZero() { |
