diff --git a/repo_test.go b/repo_test.go index 33eeecab..8bbff861 100644 --- a/repo_test.go +++ b/repo_test.go @@ -23,7 +23,7 @@ func TestDuplicatedLinks(t *testing.T) { query := startQuery() links := make(map[string]bool, 0) - query.Find("body a").Each(func(_ int, s *goquery.Selection) { + query.Find("body li > a:first-child").Each(func(_ int, s *goquery.Selection) { t.Run(s.Text(), func(t *testing.T) { href, ok := s.Attr("href") if !ok {