summaryrefslogtreecommitdiffstats
path: root/api/command_msg_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command_msg_test.go')
-rw-r--r--api/command_msg_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command_msg_test.go b/api/command_msg_test.go
index db8c3216c..f11fce091 100644
--- a/api/command_msg_test.go
+++ b/api/command_msg_test.go
@@ -30,7 +30,7 @@ func TestMsgCommands(t *testing.T) {
if !strings.HasSuffix(rs2.GotoLocation, "/"+team.Name+"/channels/"+user1.Id+"__"+user3.Id) && !strings.HasSuffix(rs2.GotoLocation, "/"+team.Name+"/channels/"+user3.Id+"__"+user1.Id) {
t.Fatal("failed to create second direct channel")
}
- if result := Client.Must(Client.SearchPosts("foobar")).Data.(*model.PostList); len(result.Order) == 0 {
+ if result := Client.Must(Client.SearchPosts("foobar", false)).Data.(*model.PostList); len(result.Order) == 0 {
t.Fatalf("post did not get sent to direct message")
}