summaryrefslogtreecommitdiff
path: root/internal/lsp/chat_commands_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/chat_commands_test.go')
-rw-r--r--internal/lsp/chat_commands_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/lsp/chat_commands_test.go b/internal/lsp/chat_commands_test.go
index 15a3acf..d1836df 100644
--- a/internal/lsp/chat_commands_test.go
+++ b/internal/lsp/chat_commands_test.go
@@ -2,6 +2,7 @@ package lsp
import (
"bytes"
+ "context"
"log"
"os"
"path/filepath"
@@ -55,7 +56,7 @@ func TestHandleReloadCommandReloadsStore(t *testing.T) {
var logBuf bytes.Buffer
logger := log.New(&logBuf, "", 0)
- initial := appconfig.Load(logger)
+ initial := appconfig.Load(context.Background(), logger)
if initial.MaxTokens != 321 {
t.Fatalf("expected env override to win initial load, got %d", initial.MaxTokens)
}
@@ -102,7 +103,7 @@ func TestDetectAndHandleChatExecutesSlashCommand(t *testing.T) {
var logBuf bytes.Buffer
logger := log.New(&logBuf, "", 0)
- initial := appconfig.Load(logger)
+ initial := appconfig.Load(context.Background(), logger)
store := runtimeconfig.New(initial)
s := newTestServer()