diff options
author | =Corey Hulen <corey@hulen.com> | 2016-03-07 17:45:15 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-03-07 17:45:15 -0800 |
commit | e7ece19957f17bf60379167dd9ae9e7bac804e0a (patch) | |
tree | 5b83c4b3bd48475dde6dcca474e4548a54228a9f /api | |
parent | d9f242d430613819c3e09cebc6cba8919d348566 (diff) | |
download | chat-e7ece19957f17bf60379167dd9ae9e7bac804e0a.tar.gz chat-e7ece19957f17bf60379167dd9ae9e7bac804e0a.tar.bz2 chat-e7ece19957f17bf60379167dd9ae9e7bac804e0a.zip |
Fixing unit test
Diffstat (limited to 'api')
-rw-r--r-- | api/command_logout_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
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") } } |