fix race condition in SRT tests (#3215)

This commit is contained in:
Alessandro Ros 2024-04-09 10:04:56 +02:00 committed by GitHub
parent 0b5519d30c
commit 36a6ca6ba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,15 +45,11 @@ func TestSource(t *testing.T) {
}})
require.NoError(t, err)
err = w.WriteH26x(track, 0, 0, true, [][]byte{{ // non-IDR
5, 2,
}})
require.NoError(t, err)
err = bw.Flush()
require.NoError(t, err)
time.Sleep(1000 * time.Millisecond)
// wait for internal SRT queue to be written
time.Sleep(500 * time.Millisecond)
}()
te := test.NewSourceTester(