Skip to content

Commit

Permalink
Merge pull request etcd-io#16263 from Rajalakshmi-Girish/flake-grpc-rr
Browse files Browse the repository at this point in the history
Fix flaky integration/clientv3/naming TestEtcdGrpcResolverRoundRobin
  • Loading branch information
ahrtr committed Jul 18, 2023
2 parents eb204f1 + ea72194 commit e209968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/clientv3/naming/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func testEtcdGrpcResolver(t *testing.T, lbPolicy string) {

// Send more requests
lastResponse := []byte{'1'}
totalRequests := 1000
totalRequests := 3500
for i := 1; i < totalRequests; i++ {
resp, err := c.UnaryCall(context.TODO(), &testpb.SimpleRequest{}, grpc.WaitForReady(true))
if err != nil {
Expand All @@ -111,7 +111,7 @@ func testEtcdGrpcResolver(t *testing.T, lbPolicy string) {
// If the load balancing policy is pick first then return payload should equal number of requests
t.Logf("Last response: %v", string(lastResponse))
if lbPolicy == "pick_first" {
if string(lastResponse) != "1000" {
if string(lastResponse) != "3500" {
t.Fatalf("unexpected total responses from foo: %s", string(lastResponse))
}
}
Expand Down

0 comments on commit e209968

Please sign in to comment.