Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Dec 20, 2024
1 parent 44aa76e commit 9e6cf71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/creds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ func (s) TestWaitForReadyRPCErrorOnBadCertificates(t *testing.T) {
testutils.AwaitState(ctx, t, cc, connectivity.TransientFailure)

tc := testgrpc.NewTestServiceClient(cc)
// Use a short context as WaitForReady waits for context expiration before
// failing the RPC.
ctx, cancel = context.WithTimeout(context.Background(), defaultTestShortTimeout)
defer cancel()
if _, err = tc.EmptyCall(ctx, &testpb.Empty{}, grpc.WaitForReady(true)); !strings.Contains(err.Error(), clientAlwaysFailCredErrorMsg) {
Expand Down

0 comments on commit 9e6cf71

Please sign in to comment.