summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store_test.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-07-30 09:55:03 -0400
committerJoramWilander <jwawilander@gmail.com>2015-07-30 09:55:03 -0400
commitbcee238666397cf8c96ba6d1583470993e692012 (patch)
tree86a8bcff43f6cd0ae15f6c79e42f6592dedd4c69 /store/sql_post_store_test.go
parentb2b6bddadc6331d0f183f10da556b34f46314f73 (diff)
downloadchat-bcee238666397cf8c96ba6d1583470993e692012.tar.gz
chat-bcee238666397cf8c96ba6d1583470993e692012.tar.bz2
chat-bcee238666397cf8c96ba6d1583470993e692012.zip
partially fixed postgres search so that multiple search terms work
Diffstat (limited to 'store/sql_post_store_test.go')
-rw-r--r--store/sql_post_store_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/store/sql_post_store_test.go b/store/sql_post_store_test.go
index d1639aa03..336a20d98 100644
--- a/store/sql_post_store_test.go
+++ b/store/sql_post_store_test.go
@@ -483,4 +483,9 @@ func TestPostStoreSearch(t *testing.T) {
if len(r8.Order) != 0 {
t.Fatal("returned wrong serach result")
}
+
+ r9 := (<-store.Post().Search(teamId, userId, "mattermost jersey", false)).Data.(*model.PostList)
+ if len(r9.Order) != 2 {
+ t.Fatal("returned wrong search result")
+ }
}