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 d812f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 Down

0 comments on commit d812f62

Please sign in to comment.