(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func (s) TestNonFailFastRPCSucceedOnTimeoutCreds(t *testing.T) { |
| 172 | te := newTest(t, env{name: "timeout-cred", network: "tcp", security: "empty"}) |
| 173 | te.userAgent = testAppUA |
| 174 | te.startServer(&testServer{security: te.e.security}) |
| 175 | defer te.tearDown() |
| 176 | |
| 177 | cc := te.clientConn(grpc.WithTransportCredentials(&clientTimeoutCreds{})) |
| 178 | tc := testgrpc.NewTestServiceClient(cc) |
| 179 | ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout) |
| 180 | defer cancel() |
| 181 | // This unary call should succeed, because ClientHandshake will succeed for the second time. |
| 182 | if _, err := tc.EmptyCall(ctx, &testpb.Empty{}, grpc.WaitForReady(true)); err != nil { |
| 183 | te.t.Fatalf("TestService/EmptyCall(_, _) = _, %v, want <nil>", err) |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | type methodTestCreds struct{} |
| 188 |
nothing calls this directly
no test coverage detected