summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/run_more_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hexaiaction/run_more_test.go')
-rw-r--r--internal/hexaiaction/run_more_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/hexaiaction/run_more_test.go b/internal/hexaiaction/run_more_test.go
index 0e391ed..6a4959e 100644
--- a/internal/hexaiaction/run_more_test.go
+++ b/internal/hexaiaction/run_more_test.go
@@ -46,7 +46,7 @@ func TestHandleDiagnosticsActionInvokesLLM(t *testing.T) {
parts := InputParts{Diagnostics: []string{"warn1"}, Selection: "code"}
client := &stubChatDoer{}
cfg := appconfig.Load(nil)
- if _, err := handleDiagnosticsAction(context.Background(), parts, cfg, client); err != nil {
+ if _, err := handleDiagnosticsAction(context.Background(), parts, &cfg, client); err != nil {
t.Fatalf("handleDiagnosticsAction: %v", err)
}
if client.calls != 1 {
@@ -68,7 +68,7 @@ func TestHandleSimplifyActionPassesSelection(t *testing.T) {
parts := InputParts{Selection: "value := 1"}
client := &stubChatDoer{}
cfg := appconfig.Load(nil)
- if _, err := handleSimplifyAction(context.Background(), parts, cfg, client); err != nil {
+ if _, err := handleSimplifyAction(context.Background(), parts, &cfg, client); err != nil {
t.Fatalf("handleSimplifyAction: %v", err)
}
if client.calls != 1 {
@@ -91,7 +91,7 @@ func TestHandleCustomActionUsesProvidedCustom(t *testing.T) {
parts := InputParts{Selection: "text"}
client := &stubChatDoer{}
cfg := appconfig.Load(nil)
- if _, err := handleCustomAction(context.Background(), parts, cfg, client, &sel); err != nil {
+ if _, err := handleCustomAction(context.Background(), parts, &cfg, client, &sel); err != nil {
t.Fatalf("handleCustomAction: %v", err)
}
if client.calls != 1 {