* Update webrtc_test.go

* Update webrtc.go

* Update config.go

* Update webrtc.go
Этот коммит содержится в:
Jason Blais
2017-11-06 13:23:15 -05:00
коммит произвёл Christopher Speller
родитель 1af182c198
Коммит 4731057e50
4 изменённых файлов: 9 добавлений и 59 удалений

Просмотреть файл

@@ -27,20 +27,20 @@ func TestWebrtcInfoResponseToFromJson(t *testing.T) {
}
}
func TestJanusGatewayResponseFromJson(t *testing.T) {
func TestGatewayResponseFromJson(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
// Valid Gateway Response
s1 := `{"janus": "something"}`
g1 := JanusGatewayResponseFromJson(strings.NewReader(s1))
g1 := GatewayResponseFromJson(strings.NewReader(s1))
CheckString(t, g1.Status, "something")
// Malformed JSON
s2 := `{"wat"`
g2 := JanusGatewayResponseFromJson(strings.NewReader(s2))
g2 := GatewayResponseFromJson(strings.NewReader(s2))
if g2 != nil {
t.Fatal("expected nil")