From 2193e3c2531f023301782e862367c3e92f2f7c98 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Sun, 7 Apr 2024 15:21:49 +0800 Subject: [PATCH] make TestStores stable Signed-off-by: Ryan Leung --- tests/integrations/mcs/scheduling/api_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integrations/mcs/scheduling/api_test.go b/tests/integrations/mcs/scheduling/api_test.go index 38294598bc5..be51123532d 100644 --- a/tests/integrations/mcs/scheduling/api_test.go +++ b/tests/integrations/mcs/scheduling/api_test.go @@ -650,6 +650,8 @@ func (suite *apiTestSuite) checkStores(cluster *tests.TestCluster) { for _, store := range stores { tests.MustPutStore(re, cluster, store) } + // prevent the offline store from changing to tombstone + tests.MustPutRegion(re, cluster, 3, 6, []byte("a"), []byte("b")) // Test /stores apiServerAddr := cluster.GetLeaderServer().GetAddr() urlPrefix := fmt.Sprintf("%s/pd/api/v1/stores", apiServerAddr)