Ignore | characters in postgres channel search (#9019)

Этот коммит содержится в:
Joram Wilander
2018-06-29 18:13:13 -04:00
коммит произвёл Jesús Espino
родитель 4245797cb2
Коммит 2362a5b7f7
2 изменённых файлов: 15 добавлений и 0 удалений

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

@@ -2028,6 +2028,19 @@ func testChannelStoreSearchInTeam(t *testing.T, ss store.Store) {
t.Fatal("wrong channel returned")
}
}
if result := <-search(o1.TeamId, "town square |"); result.Err != nil {
t.Fatal(result.Err)
} else {
channels := result.Data.(*model.ChannelList)
if len(*channels) != 1 {
t.Fatal("should return 1 channel")
}
if (*channels)[0].Name != o9.Name {
t.Fatal("wrong channel returned")
}
}
})
}
}