mirror of https://github.com/coder/coder.git
test: Skip leaked pion goroutines in peer (#108)
This commit is contained in:
parent
58f3e439dd
commit
b8cd579396
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue