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

Method StartServer

tailnet/test/integration/integration.go:344–356  ·  view source on GitHub ↗
(t *testing.T, logger slog.Logger, listenAddr string)

Source from the content-addressed store, hash-verified

342var _ ServerStarter = NGINXServerOptions{}
343
344func (o NGINXServerOptions) StartServer(t *testing.T, logger slog.Logger, listenAddr string) {
345 host, nginxPortStr, err := net.SplitHostPort(listenAddr)
346 require.NoError(t, err)
347
348 nginxPort, err := strconv.Atoi(nginxPortStr)
349 require.NoError(t, err)
350
351 serverPort := nginxPort + 1
352 serverListenAddr := net.JoinHostPort(host, strconv.Itoa(serverPort))
353
354 o.SimpleServerOptions.StartServer(t, logger, serverListenAddr)
355 startNginx(t, nginxPortStr, serverListenAddr)
356}
357
358func startNginx(t *testing.T, listenPort, serverAddr string) {
359 cfg := `events {}

Callers

nothing calls this directly

Calls 2

startNginxFunction · 0.85
StartServerMethod · 0.65

Tested by

no test coverage detected