(t *testing.T)
| 491 | } |
| 492 | |
| 493 | func (s) TestResolverEmptyUpdateNotPanic(t *testing.T) { |
| 494 | r := manual.NewBuilderWithScheme("whatever") |
| 495 | |
| 496 | cc, err := NewClient(r.Scheme()+":///test.server", WithTransportCredentials(insecure.NewCredentials()), WithResolvers(r)) |
| 497 | if err != nil { |
| 498 | t.Fatalf("grpc.NewClient() failed: %v", err) |
| 499 | } |
| 500 | defer cc.Close() |
| 501 | cc.Connect() |
| 502 | // This make sure we don't create addrConn with empty address list. |
| 503 | r.UpdateState(resolver.State{}) // This should not panic. |
| 504 | |
| 505 | time.Sleep(time.Second) // Sleep to make sure the service config is handled by ClientConn. |
| 506 | } |
| 507 | |
| 508 | func (s) TestDisableServiceConfigOption(t *testing.T) { |
| 509 | r := manual.NewBuilderWithScheme("whatever") |
nothing calls this directly
no test coverage detected