Skip to content

Commit

Permalink
dashboard_test: extend wait time for dashboard service (#7170)
Browse files Browse the repository at this point in the history
close #3182

Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp authored Sep 28, 2023
1 parent 849d80d commit 3904a62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
3 changes: 2 additions & 1 deletion tests/dashboard/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3904a62

Please sign in to comment.