Fix user autocomplete for DMs and GMs (#6265)

Этот коммит содержится в:
Joram Wilander
2017-04-28 11:04:13 -04:00
коммит произвёл Corey Hulen
родитель 91f3e10854
Коммит 36a15925dc
2 изменённых файлов: 22 добавлений и 18 удалений

Просмотреть файл

@@ -507,6 +507,12 @@ func TestAutocompleteUsers(t *testing.T) {
t.Fatal("should have many users")
}
rusers, resp = Client.AutocompleteUsersInChannel("", channelId, "", "")
CheckNoError(t, resp)
if len(rusers.Users) < 2 {
t.Fatal("should have many users")
}
rusers, resp = Client.AutocompleteUsersInTeam(teamId, username, "")
CheckNoError(t, resp)