summaryrefslogtreecommitdiffstats
path: root/api/webrtc_test.go
blob: d6a690407eb88f9e3783b8752df28040bc5efc82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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")
	}
}