From f38dac52ce478be7293b82c83d8ca9d7a3657c44 Mon Sep 17 00:00:00 2001 From: whuwxl Date: Fri, 19 May 2023 20:54:24 +0800 Subject: [PATCH] Fix unusedparams warnings --- core/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/client_test.go b/core/client_test.go index bce558f..c4bc8aa 100644 --- a/core/client_test.go +++ b/core/client_test.go @@ -315,7 +315,7 @@ func TestClientVerifyFail(t *testing.T) { client, err := core.NewClient(ctx, opts...) require.NoError(t, err) - ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Request-Id", "0") w.Header().Set("Wechatpay-Serial", utils.GetCertificateSerialNumber(*wechatPayCertificate)) @@ -342,7 +342,7 @@ func TestClientNoAuth(t *testing.T) { client, err := core.NewClient(ctx, opts...) require.NoError(t, err) - ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(401) w.Header().Set("Request-Id", "0") fmt.Fprint(w, `{"code":"SIGN_ERROR","message":"sign error"}`)