(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func (s) TestWithTimeout(t *testing.T) { |
| 176 | conn, err := Dial("passthrough:///Non-Existent.Server:80", |
| 177 | WithTimeout(time.Millisecond), |
| 178 | WithBlock(), |
| 179 | WithTransportCredentials(insecure.NewCredentials())) |
| 180 | if err == nil { |
| 181 | conn.Close() |
| 182 | } |
| 183 | if err != context.DeadlineExceeded { |
| 184 | t.Fatalf("Dial(_, _) = %v, %v, want %v", conn, err, context.DeadlineExceeded) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | func (s) TestWithTransportCredentialsTLS(t *testing.T) { |
| 189 | ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond) |
nothing calls this directly
no test coverage detected