Fixing file info caching issue with Aurora for master (#5477)

Этот коммит содержится в:
Corey Hulen
2017-02-20 13:40:32 -05:00
коммит произвёл Christopher Speller
родитель dd4d8440ea
Коммит 274b9b6032
8 изменённых файлов: 39 добавлений и 17 удалений

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

@@ -136,7 +136,7 @@ func TestCreatePost(t *testing.T) {
} else if rpost9 := resp.Data.(*model.Post); len(rpost9.FileIds) != 3 {
t.Fatal("post should have 3 files")
} else {
infos := store.Must(app.Srv.Store.FileInfo().GetForPost(rpost9.Id, true)).([]*model.FileInfo)
infos := store.Must(app.Srv.Store.FileInfo().GetForPost(rpost9.Id, true, true)).([]*model.FileInfo)
if len(infos) != 3 {
t.Fatal("should've attached all 3 files to post")