(t *testing.T)
| 301 | } |
| 302 | |
| 303 | func TestDialTLS(t *testing.T) { |
| 304 | s := newTLSServer(t) |
| 305 | defer s.Close() |
| 306 | |
| 307 | d := cstDialer |
| 308 | d.TLSClientConfig = &tls.Config{RootCAs: rootCAs(t, s.Server)} |
| 309 | ws, _, err := d.Dial(s.URL, nil) |
| 310 | if err != nil { |
| 311 | t.Fatalf("Dial: %v", err) |
| 312 | } |
| 313 | defer ws.Close() |
| 314 | sendRecv(t, ws) |
| 315 | } |
| 316 | |
| 317 | func TestDialTimeout(t *testing.T) { |
| 318 | s := newServer(t) |
nothing calls this directly
no test coverage detected