A shepherd for your Appimages.
0

Configure Feed

Select the types of activity you want to include in your feed.

test/install_url: use proper tempdir

Aly Raffauf (Jun 19, 2026, 1:17 PM EDT) e6bb5ceb c13caea7

+4 -2
+4 -2
internal/appherder/install_url_test.go
··· 4 4 "context" 5 5 "net/http" 6 6 "net/http/httptest" 7 - "os" 8 7 "path/filepath" 9 8 "testing" 10 9 ) 11 10 12 11 func TestInstallFromURLDownloadsAndCleansUp(t *testing.T) { 12 + tmp := t.TempDir() 13 + t.Setenv("TMPDIR", tmp) 14 + 13 15 srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 14 16 w.Write([]byte("not an appimage")) 15 17 })) ··· 21 23 t.Fatal("expected error for non-AppImage content") 22 24 } 23 25 24 - matches, _ := filepath.Glob(filepath.Join(os.TempDir(), "appherder-install-*.appimage")) 26 + matches, _ := filepath.Glob(filepath.Join(tmp, "appherder-install-*.appimage")) 25 27 if len(matches) > 0 { 26 28 t.Fatalf("temp files left behind: %v", matches) 27 29 }