mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
test: Skip leaked pion goroutines in peer (#108)
This commit is contained in:
@ -48,7 +48,14 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
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) {
|
func TestConn(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user