(t *testing.T)
| 21 | ) |
| 22 | |
| 23 | func websocketClientTLSConfig(t *testing.T) *tls.Config { |
| 24 | certPool := x509.NewCertPool() |
| 25 | helloCert, err := tlsconfig.GetHelloCertificateX509() |
| 26 | assert.NoError(t, err) |
| 27 | certPool.AddCert(helloCert) |
| 28 | assert.NotNil(t, certPool) |
| 29 | return &tls.Config{RootCAs: certPool} |
| 30 | } |
| 31 | |
| 32 | func TestWebsocketHeaders(t *testing.T) { |
| 33 | req := testRequest(t, "http://example.com", nil) |
no test coverage detected