Skip to content

Commit

Permalink
make TestStores stable
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Apr 16, 2024
1 parent 22543a9 commit e1e2b18
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 e1e2b18

Please sign in to comment.