diff --git a/tools/pd-ctl/tests/global_test.go b/tools/pd-ctl/tests/global_test.go index 1387a0cdd51..cdc866f4e0c 100644 --- a/tools/pd-ctl/tests/global_test.go +++ b/tools/pd-ctl/tests/global_test.go @@ -39,7 +39,7 @@ func TestSendAndGetComponent(t *testing.T) { re := require.New(t) handler := func(context.Context, *server.Server) (http.Handler, apiutil.APIServiceGroup, error) { mux := http.NewServeMux() - mux.HandleFunc("/pd/api/v1/cluster", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/pd/api/v1/cluster", func(w http.ResponseWriter, _ *http.Request) { cluster := &metapb.Cluster{ Id: 0, }