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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e59674cfdd
Коммит
87ff64ea6d
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user