summaryrefslogtreecommitdiffstats
path: root/api/command_logout_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command_logout_test.go')
-rw-r--r--api/command_logout_test.go3
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")
}
}