From 84030ff4a00008a46137ec0a19db7fe7301f97f7 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Thu, 22 Jul 2021 13:14:12 +0800 Subject: [PATCH] *: make TestScatterGroupInConcurrency more stable (#3898) Signed-off-by: Ryan Leung --- server/schedule/region_scatterer_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/schedule/region_scatterer_test.go b/server/schedule/region_scatterer_test.go index 8560af0c998..5e8c3ed4a71 100644 --- a/server/schedule/region_scatterer_test.go +++ b/server/schedule/region_scatterer_test.go @@ -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 {