MCPcopy Create free account
hub / github.com/pion/ice / TestMDNSQueryTimeout

Function TestMDNSQueryTimeout

agent_test.go:3211–3221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3209}
3210
3211func 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
3223func 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) {

Callers

nothing calls this directly

Calls 3

mDNSQueryTimeoutMethod · 0.95
RunMethod · 0.80
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…