Procházet zdrojové kódy

Fixed json index unit test

Torkel Ödegaard před 10 roky
rodič
revize
c8146e759f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)