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

Function TestServerTailnet_AgentConn_NoSTUN

coderd/tailnet_test.go:55–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestServerTailnet_AgentConn_NoSTUN(t *testing.T) {
56 t.Parallel()
57
58 ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
59 defer cancel()
60
61 // Connect through the ServerTailnet
62 agents, serverTailnet := setupServerTailnetAgent(t, 1,
63 tailnettest.DisableSTUN, tailnettest.DERPIsEmbedded)
64 a := agents[0]
65
66 conn, release, err := serverTailnet.AgentConn(ctx, a.id)
67 require.NoError(t, err)
68 defer release()
69
70 assert.True(t, conn.AwaitReachable(ctx))
71}
72
73//nolint:paralleltest // t.Setenv
74func TestServerTailnet_ReverseProxy_ProxyEnv(t *testing.T) {

Callers

nothing calls this directly

Calls 3

setupServerTailnetAgentFunction · 0.85
AgentConnMethod · 0.65
AwaitReachableMethod · 0.65

Tested by

no test coverage detected