integration test around receive before publish

This commit is contained in:
David Zhao
2021-02-02 22:53:48 -08:00
parent 88e247d95a
commit d117cce37b
6 changed files with 102 additions and 11 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func (w *TrackWriter) Stop() {
func (w *TrackWriter) writeNull() {
defer w.onWriteComplete()
sample := media.Sample{Data: []byte{0x0, 0xff, 0xff, 0xff, 0xff}, Duration: time.Second}
sample := media.Sample{Data: []byte{0x0, 0xff, 0xff, 0xff, 0xff}, Duration: 30 * time.Millisecond}
for {
select {
case <-time.After(20 * time.Millisecond):