summaryrefslogtreecommitdiffstats
path: root/api/post_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-02-20 13:40:32 -0500
committerChristopher Speller <crspeller@gmail.com>2017-02-20 13:40:32 -0500
commit274b9b6032572dd33b28815a9c13bb18a02becbe (patch)
tree1fd47c65c854117d698d92b5cef701b59d4f9ebc /api/post_test.go
parentdd4d8440eac2e4b64bfb6b449cc0668b78ecba50 (diff)
downloadchat-274b9b6032572dd33b28815a9c13bb18a02becbe.tar.gz
chat-274b9b6032572dd33b28815a9c13bb18a02becbe.tar.bz2
chat-274b9b6032572dd33b28815a9c13bb18a02becbe.zip
Fixing file info caching issue with Aurora for master (#5477)
Diffstat (limited to 'api/post_test.go')
-rw-r--r--api/post_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post_test.go b/api/post_test.go
index ddcce2e59..a41781dae 100644
--- a/api/post_test.go
+++ b/api/post_test.go
@@ -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")