summaryrefslogtreecommitdiffstats
path: root/api4/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/user_test.go')
-rw-r--r--api4/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/user_test.go b/api4/user_test.go
index d50dfa3b6..405102373 100644
--- a/api4/user_test.go
+++ b/api4/user_test.go
@@ -873,9 +873,9 @@ func TestAutocompleteUsers(t *testing.T) {
t.Fatal("should not show first/last name")
}
- t.Run("team id, if provided, must match channel's team id", func(t *testing.T) {
+ t.Run("user must have access to team id, especially when it does not match channel's team id", func(t *testing.T) {
rusers, resp = Client.AutocompleteUsersInChannel("otherTeamId", channelId, username, "")
- CheckErrorMessage(t, resp, "api.user.autocomplete_users.invalid_team_id")
+ CheckErrorMessage(t, resp, "api.context.permissions.app_error")
})
}