Przeglądaj źródła

Fixed json index unit test

Torkel Ödegaard 10 lat temu
rodzic
commit
c8146e759f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      pkg/services/search/json_index_test.go

+ 2 - 2
pkg/services/search/json_index_test.go

@@ -17,14 +17,14 @@ func TestJsonDashIndex(t *testing.T) {
 		})
 
 		Convey("Should be able to search index", func() {
-			res, err := index.Search(&Query{Title: "", Tag: ""})
+			res, err := index.Search(&Query{Title: "", Tag: "", Limit: 20})
 			So(err, ShouldBeNil)
 
 			So(len(res), ShouldEqual, 3)
 		})
 
 		Convey("Should be able to search index by title", func() {
-			res, err := index.Search(&Query{Title: "home", Tag: ""})
+			res, err := index.Search(&Query{Title: "home", Tag: "", Limit: 20})
 			So(err, ShouldBeNil)
 
 			So(len(res), ShouldEqual, 1)