mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-18 17:34:03 +00:00
fix(indexer): correct bleve indexer token filters (#38853)
* fix #36228 * fix #37221 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -53,9 +53,9 @@ func TestSearchRepo(t *testing.T) {
|
||||
}
|
||||
|
||||
func testSearch(t *testing.T, url string, expected []string) {
|
||||
t.Helper()
|
||||
req := NewRequest(t, "GET", url)
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
filenames := resultFilenames(NewHTMLParser(t, resp.Body))
|
||||
assert.Equal(t, expected, filenames)
|
||||
assert.Equal(t, expected, filenames, "url=%s", url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user