Adding short unit tests by default (#6494)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
554938a840
Коммит
00f48a1908
@@ -9,6 +9,10 @@ import (
|
||||
)
|
||||
|
||||
func TestWebrtcInfoResponseToFromJson(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
|
||||
o := WebrtcInfoResponse{Token: NewId(), GatewayUrl: NewId()}
|
||||
json := o.ToJson()
|
||||
ro := WebrtcInfoResponseFromJson(strings.NewReader(json))
|
||||
@@ -24,6 +28,10 @@ func TestWebrtcInfoResponseToFromJson(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGatewayResponseFromJson(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
|
||||
// Valid Gateway Response
|
||||
s1 := `{"janus": "something"}`
|
||||
g1 := GatewayResponseFromJson(strings.NewReader(s1))
|
||||
|
||||
Ссылка в новой задаче
Block a user