From 3904a62661cdb8fe95b083c08ff4d69f55e01dc1 Mon Sep 17 00:00:00 2001 From: Hu# Date: Thu, 28 Sep 2023 17:19:51 +0800 Subject: [PATCH] dashboard_test: extend wait time for dashboard service (#7170) close tikv/pd#3182 Signed-off-by: husharp --- server/config/config.go | 2 +- tests/dashboard/service_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index 5b9088ac8ea..0485e077c67 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -505,7 +505,7 @@ type PDServerConfig struct { // RuntimeServices is the running extension services. RuntimeServices typeutil.StringSlice `toml:"runtime-services" json:"runtime-services"` // MetricStorage is the cluster metric storage. - // Currently we use prometheus as metric storage, we may use PD/TiKV as metric storage later. + // Currently, we use prometheus as metric storage, we may use PD/TiKV as metric storage later. MetricStorage string `toml:"metric-storage" json:"metric-storage"` // There are some values supported: "auto", "none", or a specific address, default: "auto" DashboardAddress string `toml:"dashboard-address" json:"dashboard-address"` diff --git a/tests/dashboard/service_test.go b/tests/dashboard/service_test.go index ab3a2c431cb..5f72efb2c36 100644 --- a/tests/dashboard/service_test.go +++ b/tests/dashboard/service_test.go @@ -86,7 +86,8 @@ func (suite *dashboardTestSuite) checkRespCode(url string, code int) { } func waitForConfigSync() { - time.Sleep(time.Second) + // Need to wait dashboard service start. + time.Sleep(3 * time.Second) } func (suite *dashboardTestSuite) checkServiceIsStarted(internalProxy bool, servers map[string]*tests.TestServer, leader *tests.TestServer) string {