Skip to content

Commit

Permalink
*: make TestScatterGroupInConcurrency more stable (#3898)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx authored Jul 22, 2021
1 parent 744f74f commit 84030ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/schedule/region_scatterer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ func (s *testScatterRegionSuite) TestScatterGroupInConcurrency(c *C) {
// Add 5 stores.
for i := uint64(1); i <= 5; i++ {
tc.AddRegionStore(i, 0)
// prevent store from being disconnected
tc.SetStoreLastHeartbeatInterval(i, -10*time.Minute)
}

testcases := []struct {
Expand Down

0 comments on commit 84030ff

Please sign in to comment.