From bcee238666397cf8c96ba6d1583470993e692012 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 30 Jul 2015 09:55:03 -0400 Subject: partially fixed postgres search so that multiple search terms work --- store/sql_post_store_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'store/sql_post_store_test.go') 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") + } } -- cgit v1.2.3-1-g7c22