Explorar o código

Fixed json index unit test

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
c8146e759f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)