fix race condition in tests (#3834)
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run

This commit is contained in:
Alessandro Ros 2024-10-05 21:54:11 +02:00 committed by GitHub
parent 534b637bc7
commit 2586782031
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)
}