Skip to content

Commit

Permalink
test: Skip leaked pion goroutines in peer (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs committed Jan 31, 2022
1 parent 58f3e43 commit b8cd579
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion peer/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b8cd579

Please sign in to comment.