(t *testing.T, listenAddr string)
| 325 | } |
| 326 | |
| 327 | func launchSTUNServer(t *testing.T, listenAddr string) { |
| 328 | ln := forcedAddrPacketListener{addr: listenAddr} |
| 329 | addr, cleanup := stuntest.ServeWithPacketListener(t, ln) |
| 330 | t.Cleanup(cleanup) |
| 331 | assert.Equal(t, listenAddr, addr.String(), "listen address should match forced addr") |
| 332 | } |
| 333 | |
| 334 | func waitForServerAvailable(t *testing.T, serverURL *url.URL) { |
| 335 | const delay = 100 * time.Millisecond |
no test coverage detected