forked from External/mediamtx
update golangci-lint
This commit is contained in:
parent
44c3d7c5d5
commit
9398cea0c2
12 changed files with 56 additions and 28 deletions
|
|
@ -96,7 +96,8 @@ func TestAPIConfigPathsAdd(t *testing.T) {
|
|||
var out map[string]interface{}
|
||||
err = httpRequest(http.MethodGet, "http://localhost:9997/v1/config/get", nil, &out)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, "rtsp://127.0.0.1:9999/mypath", out["paths"].(map[string]interface{})["mypath"].(map[string]interface{})["source"])
|
||||
require.Equal(t, "rtsp://127.0.0.1:9999/mypath",
|
||||
out["paths"].(map[string]interface{})["mypath"].(map[string]interface{})["source"])
|
||||
}
|
||||
|
||||
func TestAPIConfigPathsEdit(t *testing.T) {
|
||||
|
|
@ -179,7 +180,8 @@ func TestAPIPathsList(t *testing.T) {
|
|||
_, ok = out.Items["mypath"]
|
||||
require.Equal(t, true, ok)
|
||||
|
||||
track, err := gortsplib.NewTrackH264(96, &gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x01, 0x02, 0x03, 0x04}})
|
||||
track, err := gortsplib.NewTrackH264(96,
|
||||
&gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x01, 0x02, 0x03, 0x04}})
|
||||
require.NoError(t, err)
|
||||
|
||||
func() {
|
||||
|
|
@ -227,7 +229,8 @@ func TestAPIList(t *testing.T) {
|
|||
require.Equal(t, true, ok)
|
||||
defer p.close()
|
||||
|
||||
track, err := gortsplib.NewTrackH264(96, &gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x01, 0x02, 0x03, 0x04}})
|
||||
track, err := gortsplib.NewTrackH264(96,
|
||||
&gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x01, 0x02, 0x03, 0x04}})
|
||||
require.NoError(t, err)
|
||||
|
||||
switch ca {
|
||||
|
|
@ -308,7 +311,8 @@ func TestAPIKick(t *testing.T) {
|
|||
require.Equal(t, true, ok)
|
||||
defer p.close()
|
||||
|
||||
track, err := gortsplib.NewTrackH264(96, &gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x01, 0x02, 0x03, 0x04}})
|
||||
track, err := gortsplib.NewTrackH264(96,
|
||||
&gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x01, 0x02, 0x03, 0x04}})
|
||||
require.NoError(t, err)
|
||||
|
||||
switch ca {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue