Skip to content

Commit

Permalink
make TestConfigPDServer stable
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Dec 4, 2023
1 parent dfff690 commit ce91629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/server/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ func (suite *configTestSuite) checkConfigPDServer(cluster *tests.TestCluster) {
suite.Equal("table", sc.KeyType)
suite.Equal(typeutil.StringSlice([]string{}), sc.RuntimeServices)
suite.Equal("", sc.MetricStorage)
suite.Equal("auto", sc.DashboardAddress)
if sc.DashboardAddress != "auto" { // dashboard has been assigned
re.Equal(leaderServer.GetAddr(), sc.DashboardAddress)
}
suite.Equal(int(3), sc.FlowRoundByDigit)
suite.Equal(typeutil.NewDuration(time.Second), sc.MinResolvedTSPersistenceInterval)
suite.Equal(24*time.Hour, sc.MaxResetTSGap.Duration)
Expand Down

0 comments on commit ce91629

Please sign in to comment.