(t *testing.T, addr string)
| 50 | } |
| 51 | |
| 52 | func hostPort(t *testing.T, addr string) (netip.Addr, uint16) { |
| 53 | t.Helper() |
| 54 | host, port, err := net.SplitHostPort(addr) |
| 55 | if err != nil { |
| 56 | t.Fatal(err) |
| 57 | } |
| 58 | ap, err := netip.ParseAddrPort(net.JoinHostPort(host, port)) |
| 59 | if err != nil { |
| 60 | t.Fatal(err) |
| 61 | } |
| 62 | return ap.Addr(), ap.Port() |
| 63 | } |
| 64 | |
| 65 | func TestProbeSNISuccess(t *testing.T) { |
| 66 | addr, stop := tlsTestServer(t) |
no outgoing calls
no test coverage detected