Skip to content

Commit

Permalink
reduce test
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Jul 26, 2023
1 parent d5782d1 commit 060ad8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/api/region_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func TestRegionsWithKillRequest(t *testing.T) {
addr := svr.GetAddr()
url := fmt.Sprintf("%s%s/api/v1/regions", addr, apiPrefix)
mustBootstrapCluster(re, svr)
regionCount := 200000
regionCount := 50000
for i := 0; i < regionCount; i++ {
r := core.NewTestRegionInfo(uint64(i+2), 1,
[]byte(fmt.Sprintf("%09d", i)),
Expand All @@ -483,8 +483,8 @@ func TestRegionsWithKillRequest(t *testing.T) {
re.Contains(err.Error(), "context canceled")
respCh <- resp
}()
time.Sleep(200 * time.Millisecond) // wait for the request to be sent
cancel() // close the request
time.Sleep(50 * time.Millisecond) // wait for the request to be sent
cancel() // close the request
resp := <-respCh
re.Nil(resp)
}
Expand Down

0 comments on commit 060ad8c

Please sign in to comment.