(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func (s) TestLocalCredsClientFail(t *testing.T) { |
| 204 | // Use local creds at client-side which should lead to client-side failure. |
| 205 | opts := []grpc.DialOption{grpc.WithTransportCredentials(local.NewCredentials())} |
| 206 | want := status.Error(codes.Unavailable, "transport: authentication handshake failed: local credentials rejected connection to non-local address") |
| 207 | if err := testLocalCredsE2EFail(t, opts); !isExpected(err, want) { |
| 208 | t.Fatalf("testLocalCredsE2EFail() = %v; want %v", err, want) |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | func (s) TestLocalCredsServerFail(t *testing.T) { |
| 213 | // Use insecure at client-side which should lead to server-side failure. |
nothing calls this directly
no test coverage detected