summaryrefslogtreecommitdiffstats
path: root/store/storetest
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-09-10 06:20:01 -0700
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-09-10 15:20:01 +0200
commita8d116b381ec9c28c5da5c8ee39a3699f568130d (patch)
treedeac1ed66cbd21dd08f865e36feba230b433b2fd /store/storetest
parentbb605a6b91073714f6b9a59b86c25c1b46bd2ba9 (diff)
downloadchat-a8d116b381ec9c28c5da5c8ee39a3699f568130d.tar.gz
chat-a8d116b381ec9c28c5da5c8ee39a3699f568130d.tar.bz2
chat-a8d116b381ec9c28c5da5c8ee39a3699f568130d.zip
Speed up search results post selection. (#9380)
Diffstat (limited to 'store/storetest')
-rw-r--r--store/storetest/post_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/storetest/post_store.go b/store/storetest/post_store.go
index b3a7e8d12..235d6f9b7 100644
--- a/store/storetest/post_store.go
+++ b/store/storetest/post_store.go
@@ -1674,8 +1674,8 @@ func testPostStoreGetPostsByIds(t *testing.T, ss store.Store) {
store.Must(ss.Post().Delete(ro1.Id, model.GetMillis(), ""))
- if ro5 := store.Must(ss.Post().GetPostsByIds(postIds)).([]*model.Post); len(ro5) != 2 {
- t.Fatalf("Expected 2 posts in results. Got %v", len(ro5))
+ if ro5 := store.Must(ss.Post().GetPostsByIds(postIds)).([]*model.Post); len(ro5) != 3 {
+ t.Fatalf("Expected 3 posts in results. Got %v", len(ro5))
}
}