Skip to content

Commit

Permalink
*: make TestConfigPDServer stable (#7492)
Browse files Browse the repository at this point in the history
ref #4399

Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx authored Dec 5, 2023
1 parent dfff690 commit 6235fea
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions pkg/core/region_tree.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2016 TiKV Project Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down
1 change: 1 addition & 0 deletions pkg/schedule/schedulers/evict_slow_trend_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2023 TiKV Project Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/mcs/tso/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
2 changes: 1 addition & 1 deletion tests/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
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 6235fea

Please sign in to comment.