(t *testing.T)
| 3209 | } |
| 3210 | |
| 3211 | func TestMDNSQueryTimeout(t *testing.T) { |
| 3212 | t.Run("falls back to default when unset", func(t *testing.T) { |
| 3213 | agent := &Agent{} |
| 3214 | require.Equal(t, defaultSTUNGatherTimeout, agent.mDNSQueryTimeout()) |
| 3215 | }) |
| 3216 | |
| 3217 | t.Run("uses configured stun gather timeout when set", func(t *testing.T) { |
| 3218 | agent := &Agent{stunGatherTimeout: 3 * time.Second} |
| 3219 | require.Equal(t, 3*time.Second, agent.mDNSQueryTimeout()) |
| 3220 | }) |
| 3221 | } |
| 3222 | |
| 3223 | func TestAddRemoteCandidateIndependentFromTURNTransportSelection(t *testing.T) { |
| 3224 | t.Run("accepts UDP relay candidate with tcp-only configured network types and TURN/TCP URL", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…