From 15d266dab0a5278a66e9e906dccf6ea0f7443399 Mon Sep 17 00:00:00 2001 From: Kirill Danshin Date: Sat, 8 Apr 2017 23:22:12 +0300 Subject: [PATCH] Fix false positives in duplicate link detection. (#1341) Fixes #1336. --- repo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {