MM-15035: Read from file infos from master on post creation (#10899)

* MM-15035: Read from file infos from master on post creation

* Handling edit post cases for get files metadata
Этот коммит содержится в:
Jesús Espino
2019-05-23 14:29:41 +02:00
коммит произвёл GitHub
родитель e59674cfdd
Коммит 87ff64ea6d
6 изменённых файлов: 31 добавлений и 31 удалений

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

@@ -208,7 +208,7 @@ func TestAttachFilesToPost(t *testing.T) {
err = th.App.attachFilesToPost(post)
assert.Nil(t, err)
infos, err := th.App.GetFileInfosForPost(post.Id)
infos, err := th.App.GetFileInfosForPost(post.Id, false)
assert.Nil(t, err)
assert.Len(t, infos, 2)
})
@@ -236,7 +236,7 @@ func TestAttachFilesToPost(t *testing.T) {
err = th.App.attachFilesToPost(post)
assert.Nil(t, err)
infos, err := th.App.GetFileInfosForPost(post.Id)
infos, err := th.App.GetFileInfosForPost(post.Id, false)
assert.Nil(t, err)
assert.Len(t, infos, 1)
assert.Equal(t, info2.Id, infos[0].Id)