Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8cd579

Browse files
authored
test: Skip leaked pion goroutines in peer (#108)
1 parent 58f3e43 commit b8cd579

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

peer/conn_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ var (
4848
)
4949

5050
func TestMain(m *testing.M) {
51-
goleak.VerifyTestMain(m)
51+
// pion/ice doesn't properly close immediately. The solution for this isn't yet known. See:
52+
// https://github.com/pion/ice/pull/413
53+
goleak.VerifyTestMain(m,
54+
goleak.IgnoreTopFunction("github.com/pion/ice/v2.(*Agent).startOnConnectionStateChangeRoutine.func1"),
55+
goleak.IgnoreTopFunction("github.com/pion/ice/v2.(*Agent).startOnConnectionStateChangeRoutine.func2"),
56+
goleak.IgnoreTopFunction("github.com/pion/ice/v2.(*Agent).taskLoop"),
57+
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"),
58+
)
5259
}
5360

5461
func TestConn(t *testing.T) {

0 commit comments

Comments
 (0)