Этот коммит содержится в:
Christopher Speller
2016-05-06 12:08:49 -04:00
коммит произвёл Joram Wilander
родитель 204109b4b9
Коммит d2f9fd52fe
4 изменённых файлов: 17 добавлений и 12 удалений

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

@@ -4,17 +4,11 @@
package api
import (
"strings"
"testing"
"github.com/mattermost/platform/model"
)
func TestLogoutTestCommand(t *testing.T) {
th := Setup().InitBasic()
rs1 := th.BasicClient.Must(th.BasicClient.Command(th.BasicChannel.Id, "/logout", false)).Data.(*model.CommandResponse)
if !strings.HasSuffix(rs1.GotoLocation, "logout") {
t.Fatal("failed to logout")
}
th.BasicClient.Must(th.BasicClient.Command(th.BasicChannel.Id, "/logout", false))
}