From e7ece19957f17bf60379167dd9ae9e7bac804e0a Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Mon, 7 Mar 2016 17:45:15 -0800 Subject: Fixing unit test --- api/command_logout_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/command_logout_test.go b/api/command_logout_test.go index 86979316b..eee7520a8 100644 --- a/api/command_logout_test.go +++ b/api/command_logout_test.go @@ -4,6 +4,7 @@ package api import ( + "strings" "testing" "github.com/mattermost/platform/model" @@ -26,7 +27,7 @@ func TestLogoutTestCommand(t *testing.T) { channel1 = Client.Must(Client.CreateChannel(channel1)).Data.(*model.Channel) rs1 := Client.Must(Client.Command(channel1.Id, "/logout", false)).Data.(*model.CommandResponse) - if rs1.GotoLocation != "/logout" { + if !strings.HasSuffix(rs1.GotoLocation, "logout") { t.Fatal("failed to logout") } } -- cgit v1.2.3-1-g7c22