MCPcopy Index your code
hub / github.com/coder/coder / launchSTUNServer

Function launchSTUNServer

tailnet/test/integration/integration_test.go:327–332  ·  view source on GitHub ↗
(t *testing.T, listenAddr string)

Source from the content-addressed store, hash-verified

325}
326
327func 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
334func waitForServerAvailable(t *testing.T, serverURL *url.URL) {
335 const delay = 100 * time.Millisecond

Callers 1

handleTestSubprocessFunction · 0.85

Calls 3

CleanupMethod · 0.65
EqualMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected