(t *testing.T)
| 36 | ) |
| 37 | |
| 38 | func TestServerTailnet_AgentConn_OK(t *testing.T) { |
| 39 | t.Parallel() |
| 40 | |
| 41 | ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) |
| 42 | defer cancel() |
| 43 | |
| 44 | // Connect through the ServerTailnet |
| 45 | agents, serverTailnet := setupServerTailnetAgent(t, 1) |
| 46 | a := agents[0] |
| 47 | |
| 48 | conn, release, err := serverTailnet.AgentConn(ctx, a.id) |
| 49 | require.NoError(t, err) |
| 50 | defer release() |
| 51 | |
| 52 | assert.True(t, conn.AwaitReachable(ctx)) |
| 53 | } |
| 54 | |
| 55 | func TestServerTailnet_AgentConn_NoSTUN(t *testing.T) { |
| 56 | t.Parallel() |
nothing calls this directly
no test coverage detected