From b6a97d222f29c2a383ee02e63636cbe7ec3f13a9 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Thu, 10 Jul 2025 18:28:40 -0700 Subject: [PATCH] fixup test --- internal/llm/prompt/prompt_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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