fix(server): forward-fix CI — gofmt convert/types + rename unused r in enricher_test
This commit is contained in:
@@ -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"))
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user