diff --git a/rtmp/rtmp_test.go b/rtmp/rtmp_test.go index 296809c6..949ebeef 100644 --- a/rtmp/rtmp_test.go +++ b/rtmp/rtmp_test.go @@ -172,6 +172,7 @@ func TestFromFrame(t *testing.T) { if err != nil { t.Errorf("Encoding failed with error: %v", err) } + time.Sleep(40 * time.Millisecond) // rate limit to 1/25s } err = s.Close()