(t *testing.T)
| 447 | } |
| 448 | |
| 449 | func (s) TestConnectParamsWithMinConnectTimeout(t *testing.T) { |
| 450 | // Default value specified for minConnectTimeout in the spec is 20 seconds. |
| 451 | mct := 1 * time.Minute |
| 452 | conn, err := NewClient("passthrough:///foo:80", WithTransportCredentials(insecure.NewCredentials()), WithConnectParams(ConnectParams{MinConnectTimeout: mct})) |
| 453 | if err != nil { |
| 454 | t.Fatalf("grpc.NewClient() failed: %v", err) |
| 455 | } |
| 456 | defer conn.Close() |
| 457 | |
| 458 | if got := conn.dopts.minConnectTimeout(); got != mct { |
| 459 | t.Errorf("unexpected minConnectTimeout on the connection: %v, want %v", got, mct) |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | func (s) TestResolverServiceConfigBeforeAddressNotPanic(t *testing.T) { |
| 464 | r := manual.NewBuilderWithScheme("whatever") |
nothing calls this directly
no test coverage detected