Skip to content

Commit 09ed40d

Browse files
committed
Fix tests
1 parent 3b28eef commit 09ed40d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

integrations/repo_search_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ import (
1717
)
1818

1919
func resultFilenames(t testing.TB, doc *HTMLDoc) []string {
20-
resultsSelection := doc.doc.Find(".repository.search")
21-
assert.EqualValues(t, 1, resultsSelection.Length(),
22-
"Invalid template (repo search template has changed?)")
23-
filenameSelections := resultsSelection.Find(".repo-search-result").Find(".header").Find("span.file")
20+
filenameSelections := doc.doc.Find(".repository.search").Find(".repo-search-result").Find(".header").Find("span.file")
2421
result := make([]string, filenameSelections.Length())
2522
filenameSelections.Each(func(i int, selection *goquery.Selection) {
2623
result[i] = selection.Text()

0 commit comments

Comments
 (0)