speedup tests

This commit is contained in:
aler9
2023-02-13 13:18:22 +01:00
parent 6e9e4d7e88
commit d75c8e4788
2 changed files with 7 additions and 5 deletions

View File

@@ -1646,9 +1646,10 @@ func TestServerPlayTimeout(t *testing.T) {
}, nil }, nil
}, },
}, },
ReadTimeout: 1 * time.Second, ReadTimeout: 1 * time.Second,
sessionTimeout: 1 * time.Second, sessionTimeout: 1 * time.Second,
RTSPAddress: "localhost:8554", RTSPAddress: "localhost:8554",
checkStreamPeriod: 500 * time.Millisecond,
} }
switch transport { switch transport {

View File

@@ -1092,8 +1092,9 @@ func TestServerRecordTimeout(t *testing.T) {
}, nil }, nil
}, },
}, },
ReadTimeout: 1 * time.Second, ReadTimeout: 1 * time.Second,
RTSPAddress: "localhost:8554", RTSPAddress: "localhost:8554",
checkStreamPeriod: 500 * time.Millisecond,
} }
if transport == "udp" { if transport == "udp" {