mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation
19 lines
437 B
Go
19 lines
437 B
Go
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package api
|
|
|
|
import "testing"
|
|
|
|
func TestWebrtcToken(t *testing.T) {
|
|
th := Setup().InitBasic()
|
|
|
|
if _, err := th.BasicClient.GetWebrtcToken(); err != nil {
|
|
if err.Id != "api.webrtc.not_available.app_error" {
|
|
t.Fatal("Should have fail, webrtc not availble")
|
|
}
|
|
} else {
|
|
t.Fatal("Should have fail, webrtc not availble")
|
|
}
|
|
}
|