fix(server): forward-fix CI — gofmt convert/types + rename unused r in enricher_test

This commit is contained in:
2026-05-04 17:41:16 -04:00
parent 0dbe326d8b
commit 1691290875
3 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -121,7 +121,7 @@ func TestEnrichAlbum_MBCAAFetchSuccess(t *testing.T) {
pool := newPool(t)
id, dir := seedAlbumWithTrack(t, pool, "Mbcaa", "Artist", "test-mbid-123")
upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "image/jpeg")
_, _ = w.Write([]byte("MBCAA_BYTES"))
}))
@@ -157,7 +157,7 @@ func TestEnrichAlbum_MBCAA404_RecordsNone(t *testing.T) {
pool := newPool(t)
id, _ := seedAlbumWithTrack(t, pool, "Missing", "Artist", "missing-mbid")
upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
http.Error(w, "not found", http.StatusNotFound)
}))
defer upstream.Close()
@@ -242,7 +242,7 @@ func TestRetryAlbum_DeletesMbcaaFileAndRefetches(t *testing.T) {
id, dir := seedAlbumWithTrack(t, pool, "Retry", "Artist", "retry-mbid")
hits := 0
upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
hits++
_, _ = w.Write([]byte("data"))
}))