Skip to content

Commit

Permalink
*: make TestStores stable (#8078)
Browse files Browse the repository at this point in the history
close #7954

Signed-off-by: Ryan Leung <rleungx@gmail.com>

Co-authored-by: Hu# <jinhao.hu@pingcap.com>
  • Loading branch information
rleungx and HuSharp committed Apr 16, 2024
1 parent acbb9af commit 4c0a862
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integrations/mcs/scheduling/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,9 @@ func (suite *apiTestSuite) checkStores(cluster *tests.TestCluster) {
tests.MustPutRegion(re, cluster, 3, 6, []byte("a"), []byte("b"))
for _, store := range stores {
tests.MustPutStore(re, cluster, store)
if store.GetId() == 6 {
cluster.GetLeaderServer().GetRaftCluster().GetBasicCluster().UpdateStoreStatus(6)
}
}
// Test /stores
apiServerAddr := cluster.GetLeaderServer().GetAddr()
Expand Down

0 comments on commit 4c0a862

Please sign in to comment.