Support DataChannel protocol in Go

Relates to #748
This commit is contained in:
Sean DuBois
2019-09-27 00:38:17 -07:00
committed by Sean DuBois
parent 6088c7beed
commit d692ddfa54
8 changed files with 24 additions and 6 deletions

View File

@@ -295,7 +295,7 @@ func TestDataChannelParameters(t *testing.T) {
offerPC, answerPC, dc, done := setUpDataChannelParametersTest(t, options)
// Check if parameters are correctly set
assert.Equal(t, dc.Protocol(), protocol, "Protocol should match DataChannelInit")
assert.Equal(t, protocol, dc.Protocol(), "Protocol should match DataChannelInit")
answerPC.OnDataChannel(func(d *DataChannel) {
// Make sure this is the data channel we were looking for. (Not the one
@@ -304,7 +304,7 @@ func TestDataChannelParameters(t *testing.T) {
return
}
// Check if parameters are correctly set
assert.Equal(t, d.Protocol(), protocol, "Protocol should match what channel creator declared")
assert.Equal(t, protocol, d.Protocol(), "Protocol should match what channel creator declared")
done <- true
})