mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-25 21:09:15 -08:00
accept durations expressed as days (i.e. '1d') (#4094)
This commit is contained in:
parent
8cbbbc05c3
commit
b49acb1e00
53 changed files with 378 additions and 257 deletions
|
|
@ -231,7 +231,7 @@ func TestOnGet(t *testing.T) {
|
|||
|
||||
s := &Server{
|
||||
Address: "127.0.0.1:9996",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
PathConfs: map[string]*conf.Path{
|
||||
"mypath": {
|
||||
Name: "mypath",
|
||||
|
|
@ -505,7 +505,7 @@ func TestOnGetDifferentInit(t *testing.T) {
|
|||
|
||||
s := &Server{
|
||||
Address: "127.0.0.1:9996",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
PathConfs: map[string]*conf.Path{
|
||||
"mypath": {
|
||||
Name: "mypath",
|
||||
|
|
@ -581,7 +581,7 @@ func TestOnGetNTPCompensation(t *testing.T) {
|
|||
|
||||
s := &Server{
|
||||
Address: "127.0.0.1:9996",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
PathConfs: map[string]*conf.Path{
|
||||
"mypath": {
|
||||
Name: "mypath",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ func TestOnListUnfiltered(t *testing.T) {
|
|||
|
||||
s := &Server{
|
||||
Address: "127.0.0.1:9996",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
PathConfs: map[string]*conf.Path{
|
||||
"mypath": {
|
||||
Name: "mypath",
|
||||
|
|
@ -157,7 +157,7 @@ func TestOnListDifferentInit(t *testing.T) {
|
|||
|
||||
s := &Server{
|
||||
Address: "127.0.0.1:9996",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
PathConfs: map[string]*conf.Path{
|
||||
"mypath": {
|
||||
Name: "mypath",
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ type Server struct {
|
|||
ServerCert string
|
||||
AllowOrigin string
|
||||
TrustedProxies conf.IPNetworks
|
||||
ReadTimeout conf.StringDuration
|
||||
ReadTimeout conf.Duration
|
||||
PathConfs map[string]*conf.Path
|
||||
AuthManager serverAuthManager
|
||||
Parent logger.Writer
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ func TestPreflightRequest(t *testing.T) {
|
|||
s := &Server{
|
||||
Address: "127.0.0.1:9996",
|
||||
AllowOrigin: "*",
|
||||
ReadTimeout: conf.StringDuration(10 * time.Second),
|
||||
ReadTimeout: conf.Duration(10 * time.Second),
|
||||
Parent: test.NilLogger,
|
||||
}
|
||||
err := s.Initialize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue