Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Sep 27, 2024
1 parent e681eab commit 87b93a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestGRPCRateLimit(t *testing.T) {
jsonBody, err := json.Marshal(input)
re.NoError(err)
err = testutil.CheckPostJSON(tests.TestDialClient, urlPrefix, jsonBody,
testutil.StatusOK(re), testutil.StringContain(re, "QPS rate limiter is changed"))
testutil.StatusOK(re), testutil.StringContain(re, "gRPC limiter is updated"))
re.NoError(err)
for i := 0; i < 2; i++ {
resp, err := grpcPDClient.GetRegion(context.Background(), &pdpb.GetRegionRequest{
Expand All @@ -188,7 +188,7 @@ func TestGRPCRateLimit(t *testing.T) {
jsonBody, err = json.Marshal(input)
re.NoError(err)
err = testutil.CheckPostJSON(tests.TestDialClient, urlPrefix, jsonBody,
testutil.StatusOK(re), testutil.StringContain(re, "QPS rate limiter is deleted"))
testutil.StatusOK(re), testutil.StringContain(re, "gRPC limiter is deleted"))
re.NoError(err)
for i := 0; i < 100; i++ {
resp, err := grpcPDClient.GetRegion(context.Background(), &pdpb.GetRegionRequest{
Expand All @@ -208,7 +208,7 @@ func TestGRPCRateLimit(t *testing.T) {
errCh = make(chan string)
)
err = testutil.CheckPostJSON(tests.TestDialClient, urlPrefix, jsonBody,
testutil.StatusOK(re), testutil.StringContain(re, "Concurrency limiter is changed"))
testutil.StatusOK(re), testutil.StringContain(re, "gRPC limiter is updated"))
re.NoError(err)
re.NoError(failpoint.Enable("github.com/tikv/pd/server/delayProcess", `pause`))
var wg sync.WaitGroup
Expand Down

0 comments on commit 87b93a7

Please sign in to comment.