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
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
584ec68755
Коммит
9a9d5d4081
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user