diff --git a/internal/llm/prompt/prompt_test.go b/internal/llm/prompt/prompt_test.go index 3f87c435a18daf251bbe6745ff73085b195cf718..ce7fa0fb35cfdf021b886a96a828202001588a7f 100644 --- a/internal/llm/prompt/prompt_test.go +++ b/internal/llm/prompt/prompt_test.go @@ -95,10 +95,10 @@ func TestProcessContextPaths(t *testing.T) { } // Test with tilde expansion (if we can create a file in home directory) - tmpDir := t.TempDir() + tmpDir = t.TempDir() t.Setenv("HOME", tmpDir) homeTestFile := filepath.Join(tmpDir, "crush_test_file.txt") - err := os.WriteFile(homeTestFile, []byte(testContent), 0o644) + err = os.WriteFile(homeTestFile, []byte(testContent), 0o644) if err == nil { defer os.Remove(homeTestFile) // Clean up