Fix msg command so that it doesn't try to pull all user profiles at once (#4936)

This commit is contained in:
Joram Wilander
2017-01-03 10:09:19 -05:00
committed by Corey Hulen
parent 1442199647
commit 8945bd6cd0
2 changed files with 44 additions and 48 deletions

View File

@@ -38,4 +38,7 @@ func TestMsgCommands(t *testing.T) {
if !strings.HasSuffix(rs3.GotoLocation, "/"+team.Name+"/channels/"+user1.Id+"__"+user2.Id) && !strings.HasSuffix(rs3.GotoLocation, "/"+team.Name+"/channels/"+user2.Id+"__"+user1.Id) {
t.Fatal("failed to go back to existing direct channel")
}
Client.Must(Client.Command("", "/msg "+th.BasicUser.Username+" foobar"))
Client.Must(Client.Command("", "/msg junk foobar"))
}