From b8cd5793963c04f899c4dc5e9e632d624fd85e7b Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Sun, 30 Jan 2022 21:29:38 -0600 Subject: [PATCH] test: Skip leaked pion goroutines in peer (#108) --- peer/conn_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {