mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-26 21:39:16 -08:00
tests: fix race condition (#5338)
This commit is contained in:
parent
bac9060368
commit
e4c60e1e62
1 changed files with 4 additions and 2 deletions
|
|
@ -121,8 +121,10 @@ func TestToStream(t *testing.T) {
|
|||
medias[0],
|
||||
medias[0].Formats[0],
|
||||
func(u *unit.Unit) error {
|
||||
require.Equal(t, time.Date(2018, 0o5, 20, 8, 17, 15, 0, time.UTC), u.NTP)
|
||||
close(done)
|
||||
if !u.NilPayload() {
|
||||
require.Equal(t, time.Date(2018, 0o5, 20, 8, 17, 15, 0, time.UTC), u.NTP)
|
||||
close(done)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue