summaryrefslogtreecommitdiff
path: root/internal/lsp/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/server_test.go')
-rw-r--r--internal/lsp/server_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/lsp/server_test.go b/internal/lsp/server_test.go
index dc20eed..1f33a46 100644
--- a/internal/lsp/server_test.go
+++ b/internal/lsp/server_test.go
@@ -90,7 +90,7 @@ func TestServerStoreAndTakePendingCompletion(t *testing.T) {
s := newTestServer()
items := []CompletionItem{{Label: "foo"}}
s.storePendingCompletion("key", items)
- if len(s.pendingCompletions) != 1 {
+ if len(s.completion.pendingCompletions) != 1 {
t.Fatalf("expected pending map to be populated")
}
items[0].Label = "bar" // ensure copy stored
@@ -98,7 +98,7 @@ func TestServerStoreAndTakePendingCompletion(t *testing.T) {
if len(got) != 1 || got[0].Label != "foo" {
t.Fatalf("expected preserved copy of completion, got %+v", got)
}
- if len(s.pendingCompletions) != 0 {
+ if len(s.completion.pendingCompletions) != 0 {
t.Fatalf("expected pending map to be cleared after take")
}
}