From 3972b2fb207738575284c304e404b9afb612eebc Mon Sep 17 00:00:00 2001 From: husharp Date: Tue, 2 Jan 2024 10:27:25 +0800 Subject: [PATCH] remove client close Signed-off-by: husharp --- tests/dashboard/service_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/dashboard/service_test.go b/tests/dashboard/service_test.go index 34ec54b61f0e..478576293286 100644 --- a/tests/dashboard/service_test.go +++ b/tests/dashboard/service_test.go @@ -19,7 +19,6 @@ import ( "context" "encoding/json" "fmt" - "github.com/tikv/pd/tools/pd-ctl/pdctl/command" "io" "net/http" "testing" @@ -66,9 +65,6 @@ func (suite *dashboardTestSuite) SetupSuite() { func (suite *dashboardTestSuite) TearDownSuite() { suite.cancel() suite.httpClient.CloseIdleConnections() - if command.PDCli != nil { - command.PDCli.Close() - } dashboard.SetCheckInterval(time.Second) }