Skip to content

Commit

Permalink
ignore first failure
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Jun 27, 2024
1 parent 27de115 commit fea5c9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xds/internal/balancer/clusterimpl/tests/balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ func (s) TestLoadReportingPickFirstMultiLocality(t *testing.T) {

// Stop server 1 and send one more rpc. Now the request should go to server 2.
server1.Stop()
// The first call may go to server 1 and fail, so we send two requests.
if _, err := client.EmptyCall(ctx, &testpb.Empty{}, grpc.Peer(&peer)); err != nil {
t.Logf("First rpc EmptyCall() failed: %v", err)
}

if _, err := client.EmptyCall(ctx, &testpb.Empty{}, grpc.Peer(&peer)); err != nil {
t.Fatalf("rpc EmptyCall() failed: %v", err)
}
Expand Down

0 comments on commit fea5c9e

Please sign in to comment.