Migrate Reactions store to Sync by default (#10737)

* Migrate Reactions store to Sync by default

* Fixing tests

* Fixing tests

* Fixing govet

* fixing tests

* Addressing PR review comments
Этот коммит содержится в:
Jesús Espino
2019-04-30 21:34:26 +02:00
коммит произвёл Christopher Speller
родитель 584ec68755
Коммит 9a9d5d4081
16 изменённых файлов: 408 добавлений и 301 удалений

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

@@ -2089,9 +2089,9 @@ func TestImportImportPost(t *testing.T) {
t.Fatal("Post properties not as expected")
}
if result := <-th.App.Srv.Store.Reaction().GetForPost(post.Id, false); result.Err != nil {
if reactions, err := th.App.Srv.Store.Reaction().GetForPost(post.Id, false); err != nil {
t.Fatal("Can't get reaction")
} else if len(result.Data.([]*model.Reaction)) != 1 {
} else if len(reactions) != 1 {
t.Fatal("Invalid number of reactions")
}
}