Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
5e8f9ac5
Commit
5e8f9ac5
authored
Apr 28, 2020
by
Cecylia Bocovich
Browse files
Update proxy tests to check serialization errors
parent
1d2df3cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxy/proxy-go_test.go
View file @
5e8f9ac5
...
...
@@ -198,7 +198,7 @@ func TestSessionDescriptions(t *testing.T) {
},
},
}
{
desc
:=
util
.
DeserializeSessionDescription
(
test
.
msg
)
desc
,
_
:=
util
.
DeserializeSessionDescription
(
test
.
msg
)
So
(
desc
,
ShouldResemble
,
test
.
ret
)
}
})
...
...
@@ -215,8 +215,9 @@ func TestSessionDescriptions(t *testing.T) {
`{"type":"offer","sdp":"test"}`
,
},
}
{
msg
:=
util
.
SerializeSessionDescription
(
test
.
desc
)
msg
,
err
:=
util
.
SerializeSessionDescription
(
test
.
desc
)
So
(
msg
,
ShouldResemble
,
test
.
ret
)
So
(
err
,
ShouldBeNil
)
}
})
}
...
...
@@ -240,7 +241,7 @@ func TestBrokerInteractions(t *testing.T) {
},
}
pc
,
_
:=
webrtc
.
NewPeerConnection
(
config
)
offer
:=
util
.
DeserializeSessionDescription
(
sampleOffer
)
offer
,
_
:=
util
.
DeserializeSessionDescription
(
sampleOffer
)
pc
.
SetRemoteDescription
(
*
offer
)
answer
,
_
:=
pc
.
CreateAnswer
(
nil
)
pc
.
SetLocalDescription
(
answer
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment