Recent mention searches now OR terms instead of AND (#2931)

Этот коммит содержится в:
Joram Wilander
2016-05-09 12:00:08 -04:00
коммит произвёл Corey Hulen
родитель 9e07f4b021
Коммит 07126101d3
12 изменённых файлов: 78 добавлений и 43 удалений

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

@@ -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")
}