Skip to content

Commit bd084de

Browse files
greynewellclaude
andcommitted
fix(ci): add TMP/TEMP alongside TMPDIR in find zip_test for Windows
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eecc084 commit bd084de

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎internal/find/zip_test.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ func TestCreateZip_CleanGitRepo(t *testing.T) {
174174
// TestCreateZip_CreateTempError covers L48-50: createZip returns an error when
175175
// os.CreateTemp fails due to an invalid TMPDIR.
176176
func TestCreateZip_CreateTempError(t *testing.T) {
177-
t.Setenv("TMPDIR", filepath.Join(t.TempDir(), "nonexistent-tmp"))
177+
badTmp := filepath.Join(t.TempDir(), "nonexistent-tmp")
178+
t.Setenv("TMPDIR", badTmp)
179+
t.Setenv("TMP", badTmp)
180+
t.Setenv("TEMP", badTmp)
178181
_, err := createZip(t.TempDir())
179182
if err == nil {
180183
t.Error("createZip should fail when os.CreateTemp fails")

0 commit comments

Comments
 (0)