summaryrefslogtreecommitdiffstats
path: root/api/command_msg_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-03 10:09:19 -0500
committerCorey Hulen <corey@hulen.com>2017-01-03 10:09:19 -0500
commit8945bd6cd0ae9ac558c74955a913d7fd738d5116 (patch)
treeaaeb71a77b6f7b7890406a61506553d8e14b8e73 /api/command_msg_test.go
parent144219964742c35eebf6d75ae27ad17732c89dae (diff)
downloadchat-8945bd6cd0ae9ac558c74955a913d7fd738d5116.tar.gz
chat-8945bd6cd0ae9ac558c74955a913d7fd738d5116.tar.bz2
chat-8945bd6cd0ae9ac558c74955a913d7fd738d5116.zip
Fix msg command so that it doesn't try to pull all user profiles at once (#4936)
Diffstat (limited to 'api/command_msg_test.go')
-rw-r--r--api/command_msg_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/command_msg_test.go b/api/command_msg_test.go
index ad1c8d5ce..4fe28fdba 100644
--- a/api/command_msg_test.go
+++ b/api/command_msg_test.go
@@ -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"))
}