mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-05 22:39:50 +00:00
fix race condition in SRT tests (#3215)
This commit is contained in:
parent
0b5519d30c
commit
36a6ca6ba6
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user