Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Nov 23, 2023
1 parent d2c46a3 commit 8318d75
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/server/api/region_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ func (suite *regionTestSuite) checkAccelerateRegionsScheduleInRange(cluster *tes
leader := cluster.GetLeaderServer()
urlPrefix := leader.GetAddr() + "/pd/api/v1"
re := suite.Require()
for i := 13; i <= 15; i++ {
for i := 1; i <= 3; i++ {
s1 := &metapb.Store{
Id: uint64(i),
State: metapb.StoreState_Up,
NodeState: metapb.NodeState_Serving,
}
tests.MustPutStore(re, cluster, s1)
}
r1 := core.NewTestRegionInfo(557, 13, []byte("a1"), []byte("a2"))
r2 := core.NewTestRegionInfo(558, 14, []byte("a2"), []byte("a3"))
r3 := core.NewTestRegionInfo(559, 15, []byte("a3"), []byte("a4"))
r1 := core.NewTestRegionInfo(557, 1, []byte("a1"), []byte("a2"))
r2 := core.NewTestRegionInfo(558, 2, []byte("a2"), []byte("a3"))
r3 := core.NewTestRegionInfo(559, 3, []byte("a3"), []byte("a4"))
tests.MustPutRegionInfo(re, cluster, r1)
tests.MustPutRegionInfo(re, cluster, r2)
tests.MustPutRegionInfo(re, cluster, r3)
Expand Down Expand Up @@ -138,19 +138,19 @@ func (suite *regionTestSuite) checkAccelerateRegionsScheduleInRanges(cluster *te
leader := cluster.GetLeaderServer()
urlPrefix := leader.GetAddr() + "/pd/api/v1"
re := suite.Require()
for i := 13; i <= 17; i++ {
for i := 1; i <= 5; i++ {
s1 := &metapb.Store{
Id: uint64(i),
State: metapb.StoreState_Up,
NodeState: metapb.NodeState_Serving,
}
tests.MustPutStore(re, cluster, s1)
}
r1 := core.NewTestRegionInfo(557, 13, []byte("a1"), []byte("a2"))
r2 := core.NewTestRegionInfo(558, 14, []byte("a2"), []byte("a3"))
r3 := core.NewTestRegionInfo(559, 15, []byte("a3"), []byte("a4"))
r4 := core.NewTestRegionInfo(560, 16, []byte("a4"), []byte("a5"))
r5 := core.NewTestRegionInfo(561, 17, []byte("a5"), []byte("a6"))
r1 := core.NewTestRegionInfo(557, 1, []byte("a1"), []byte("a2"))
r2 := core.NewTestRegionInfo(558, 2, []byte("a2"), []byte("a3"))
r3 := core.NewTestRegionInfo(559, 3, []byte("a3"), []byte("a4"))
r4 := core.NewTestRegionInfo(560, 4, []byte("a4"), []byte("a5"))
r5 := core.NewTestRegionInfo(561, 5, []byte("a5"), []byte("a6"))
tests.MustPutRegionInfo(re, cluster, r1)
tests.MustPutRegionInfo(re, cluster, r2)
tests.MustPutRegionInfo(re, cluster, r3)
Expand Down

0 comments on commit 8318d75

Please sign in to comment.