summaryrefslogtreecommitdiffstats
path: root/api/cli_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/cli_test.go')
-rw-r--r--api/cli_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/cli_test.go b/api/cli_test.go
index 65afc81e9..c25394c17 100644
--- a/api/cli_test.go
+++ b/api/cli_test.go
@@ -118,7 +118,7 @@ func TestCliAssignRole(t *testing.T) {
th := Setup().InitBasic()
- cmd := exec.Command("bash", "-c", `go run ../mattermost.go -assign_role -email="`+th.BasicUser.Email+`" -role="system_admin"`)
+ cmd := exec.Command("bash", "-c", `go run ../mattermost.go -assign_role -email="`+th.BasicUser.Email+`" -role="system_user system_admin"`)
output, err := cmd.CombinedOutput()
if err != nil {
t.Log(string(output))
@@ -129,7 +129,7 @@ func TestCliAssignRole(t *testing.T) {
t.Fatal()
} else {
user := result.Data.(*model.User)
- if user.Roles != "system_admin" {
+ if user.Roles != "system_user system_admin" {
t.Fatal()
}
}