From d2f9fd52fe8b0da6f23775f242660329fcef6421 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 6 May 2016 12:08:49 -0400 Subject: Fixing /logout command (#2908) --- api/command_logout_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'api/command_logout_test.go') 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)) } -- cgit v1.2.3-1-g7c22