diff --git a/peer/conn_test.go b/peer/conn_test.go index 67d22483fe..c55bb56b06 100644 --- a/peer/conn_test.go +++ b/peer/conn_test.go @@ -48,7 +48,14 @@ var ( ) func TestMain(m *testing.M) { - goleak.VerifyTestMain(m) + // pion/ice doesn't properly close immediately. The solution for this isn't yet known. See: + // https://github.com/pion/ice/pull/413 + goleak.VerifyTestMain(m, + goleak.IgnoreTopFunction("github.com/pion/ice/v2.(*Agent).startOnConnectionStateChangeRoutine.func1"), + goleak.IgnoreTopFunction("github.com/pion/ice/v2.(*Agent).startOnConnectionStateChangeRoutine.func2"), + goleak.IgnoreTopFunction("github.com/pion/ice/v2.(*Agent).taskLoop"), + goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"), + ) } func TestConn(t *testing.T) {