forked from External/mediamtx
* webrtc: allow configuring timeouts (#3404) * fix from code inspect
This commit is contained in:
parent
500c5ef350
commit
1c2f95f609
11 changed files with 74 additions and 28 deletions
|
|
@ -117,6 +117,8 @@ func initializeTestServer(t *testing.T) *Server {
|
|||
IPsFromInterfacesList: []string{},
|
||||
AdditionalHosts: []string{},
|
||||
ICEServers: []conf.WebRTCICEServer{},
|
||||
HandshakeTimeout: conf.StringDuration(10 * time.Second),
|
||||
TrackGatherTimeout: conf.StringDuration(2 * time.Second),
|
||||
ExternalCmdPool: nil,
|
||||
PathManager: pathManager,
|
||||
Parent: test.NilLogger,
|
||||
|
|
@ -195,9 +197,11 @@ func TestServerOptionsICEServer(t *testing.T) {
|
|||
Username: "myuser",
|
||||
Password: "mypass",
|
||||
}},
|
||||
ExternalCmdPool: nil,
|
||||
PathManager: pathManager,
|
||||
Parent: test.NilLogger,
|
||||
HandshakeTimeout: conf.StringDuration(10 * time.Second),
|
||||
TrackGatherTimeout: conf.StringDuration(2 * time.Second),
|
||||
ExternalCmdPool: nil,
|
||||
PathManager: pathManager,
|
||||
Parent: test.NilLogger,
|
||||
}
|
||||
err := s.Initialize()
|
||||
require.NoError(t, err)
|
||||
|
|
@ -249,6 +253,8 @@ func TestServerPublish(t *testing.T) {
|
|||
IPsFromInterfacesList: []string{},
|
||||
AdditionalHosts: []string{},
|
||||
ICEServers: []conf.WebRTCICEServer{},
|
||||
HandshakeTimeout: conf.StringDuration(10 * time.Second),
|
||||
TrackGatherTimeout: conf.StringDuration(2 * time.Second),
|
||||
ExternalCmdPool: nil,
|
||||
PathManager: pathManager,
|
||||
Parent: test.NilLogger,
|
||||
|
|
@ -359,6 +365,8 @@ func TestServerRead(t *testing.T) {
|
|||
IPsFromInterfacesList: []string{},
|
||||
AdditionalHosts: []string{},
|
||||
ICEServers: []conf.WebRTCICEServer{},
|
||||
HandshakeTimeout: conf.StringDuration(10 * time.Second),
|
||||
TrackGatherTimeout: conf.StringDuration(2 * time.Second),
|
||||
ExternalCmdPool: nil,
|
||||
PathManager: pathManager,
|
||||
Parent: test.NilLogger,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue