summaryrefslogtreecommitdiffstats
path: root/api/command_logout_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-06 12:08:49 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-06 12:08:49 -0400
commitd2f9fd52fe8b0da6f23775f242660329fcef6421 (patch)
treee9a0b055d2bda65613f346fce256be9642ea1356 /api/command_logout_test.go
parent204109b4b9a62479181396523d080e43fb5d48db (diff)
downloadchat-d2f9fd52fe8b0da6f23775f242660329fcef6421.tar.gz
chat-d2f9fd52fe8b0da6f23775f242660329fcef6421.tar.bz2
chat-d2f9fd52fe8b0da6f23775f242660329fcef6421.zip
Fixing /logout command (#2908)
Diffstat (limited to 'api/command_logout_test.go')
-rw-r--r--api/command_logout_test.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/api/command_logout_test.go b/api/command_logout_test.go
index eec959115..6d74549af 100644
--- a/api/command_logout_test.go
+++ b/api/command_logout_test.go
@@ -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))
}