fix race condition in tests (#3834)

This commit is contained in:
Alessandro Ros
2024-10-05 21:54:11 +02:00
committed by GitHub
parent 534b637bc7
commit 2586782031
10 changed files with 51 additions and 32 deletions

View File

@@ -78,5 +78,7 @@ func TestFromStreamSkipUnsupportedTracks(t *testing.T) {
err = FromStream(stream, l, conn, nil, 0)
require.NoError(t, err)
defer stream.RemoveReader(l)
require.Equal(t, 2, n)
}