diff --git a/internal/coverart/provider_theaudiodb_test.go b/internal/coverart/provider_theaudiodb_test.go index 7e7dd666..8fdc0838 100644 --- a/internal/coverart/provider_theaudiodb_test.go +++ b/internal/coverart/provider_theaudiodb_test.go @@ -86,7 +86,7 @@ func TestTheAudioDB_FetchAlbumCover_Success(t *testing.T) { } func TestTheAudioDB_FetchAlbumCover_NotFound(t *testing.T) { - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/json") _, _ = w.Write([]byte(`{"album":null}`)) })) @@ -100,7 +100,7 @@ func TestTheAudioDB_FetchAlbumCover_NotFound(t *testing.T) { } func TestTheAudioDB_FetchAlbumCover_NullThumbURL(t *testing.T) { - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/json") _, _ = w.Write([]byte(`{"album":[{"strAlbumThumb":null}]}`)) })) @@ -115,7 +115,7 @@ func TestTheAudioDB_FetchAlbumCover_NullThumbURL(t *testing.T) { func TestTheAudioDB_FetchAlbumCover_429TriggersRetry(t *testing.T) { var attempts atomic.Int32 - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { n := attempts.Add(1) if n == 1 { http.Error(w, "rate limit", http.StatusTooManyRequests) @@ -265,7 +265,7 @@ func TestTheAudioDB_DisabledReturnsNotFound(t *testing.T) { } func TestTheAudioDB_TestConnection_SuccessOnEmptyAlbum(t *testing.T) { - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/json") _, _ = w.Write([]byte(`{"album":null}`)) })) @@ -278,7 +278,7 @@ func TestTheAudioDB_TestConnection_SuccessOnEmptyAlbum(t *testing.T) { } func TestTheAudioDB_TestConnection_FailureOn401(t *testing.T) { - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { http.Error(w, "unauthorized", http.StatusUnauthorized) })) defer srv.Close()