diff --git a/server_play_test.go b/server_play_test.go index 16450705..26edbfe5 100644 --- a/server_play_test.go +++ b/server_play_test.go @@ -1646,9 +1646,10 @@ func TestServerPlayTimeout(t *testing.T) { }, nil }, }, - ReadTimeout: 1 * time.Second, - sessionTimeout: 1 * time.Second, - RTSPAddress: "localhost:8554", + ReadTimeout: 1 * time.Second, + sessionTimeout: 1 * time.Second, + RTSPAddress: "localhost:8554", + checkStreamPeriod: 500 * time.Millisecond, } switch transport { diff --git a/server_record_test.go b/server_record_test.go index 548bae93..179ce2d9 100644 --- a/server_record_test.go +++ b/server_record_test.go @@ -1092,8 +1092,9 @@ func TestServerRecordTimeout(t *testing.T) { }, nil }, }, - ReadTimeout: 1 * time.Second, - RTSPAddress: "localhost:8554", + ReadTimeout: 1 * time.Second, + RTSPAddress: "localhost:8554", + checkStreamPeriod: 500 * time.Millisecond, } if transport == "udp" {