From 35b47bca657b5eb687ed677fcc9087605c8c994d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 3 Apr 2024 23:20:11 +0200 Subject: [PATCH] [linkcheck] Remove flaky test caused by domaingrabber grabbing some random domain Signed-off-by: Knut Ahlers --- internal/linkcheck/linkcheck_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/linkcheck/linkcheck_test.go b/internal/linkcheck/linkcheck_test.go index c78c2b5..239122e 100644 --- a/internal/linkcheck/linkcheck_test.go +++ b/internal/linkcheck/linkcheck_test.go @@ -179,8 +179,7 @@ func TestScanForLinks(t *testing.T) { }, // Case: false positives {Heuristic: true, Message: "game dot exe has stopped working", ExpectedLinks: nil}, - {Heuristic: false, Message: "You're following since 12.12.2020 DogChamp", ExpectedLinks: nil}, - {Heuristic: true, Message: "You're following since 12.12.2020 DogChamp", ExpectedLinks: []string{"http://You.re"}}, + {Heuristic: true, Message: "You are following since 12.12.2020 DogChamp", ExpectedLinks: nil}, {Heuristic: false, Message: "Hey btw. es kann sein, dass", ExpectedLinks: nil}, } { t.Run(fmt.Sprintf("h:%v lc:%d m:%s", testCase.Heuristic, len(testCase.ExpectedLinks), testCase.Message), func(t *testing.T) {