mirror of https://bitbucket.org/ausocean/av.git
protocol/rtsp: expected CSeq key is just Cseq now to match ReadResponse result.
This commit is contained in:
parent
c552238da5
commit
401376c059
|
@ -293,7 +293,7 @@ func TestReadResponse(t *testing.T) {
|
||||||
StatusCode: 200,
|
StatusCode: 200,
|
||||||
ContentLength: 0,
|
ContentLength: 0,
|
||||||
Header: map[string][]string{
|
Header: map[string][]string{
|
||||||
"CSeq": []string{"2"},
|
"Cseq": []string{"2"},
|
||||||
"Date": []string{"Wed, Jan 21 1970 02:37:14 GMT"},
|
"Date": []string{"Wed, Jan 21 1970 02:37:14 GMT"},
|
||||||
"Public": []string{"OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, GET_PARAMETER, SET_PARAMETER"},
|
"Public": []string{"OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, GET_PARAMETER, SET_PARAMETER"},
|
||||||
},
|
},
|
||||||
|
@ -328,10 +328,6 @@ func respEqual(got, want Response) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v := range got.Header {
|
for k, v := range got.Header {
|
||||||
if k == "Cseq" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(v) != len(want.Header[k]) {
|
if len(v) != len(want.Header[k]) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue