From 1ba1ee34fcf09e7780c39e7ea79ceff6cde901d4 Mon Sep 17 00:00:00 2001 From: Samantha Jayasinghe Date: Thu, 30 Jul 2026 13:59:10 +1200 Subject: [PATCH] Fix flaky link_validator test by using .invalid TLD The test used a .com domain that started resolving, causing the network-error test case to pass unexpectedly. Switch to the IANA-reserved .invalid TLD (RFC 2606) which is guaranteed to never resolve. Co-Authored-By: Claude Opus 4.6 --- pkg/link_validator/link_validator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/link_validator/link_validator_test.go b/pkg/link_validator/link_validator_test.go index 27f396b76..95b7d8f98 100644 --- a/pkg/link_validator/link_validator_test.go +++ b/pkg/link_validator/link_validator_test.go @@ -185,7 +185,7 @@ func TestLinkValidator_ValidateLinks(t *testing.T) { }, { name: "message with network error URL", - message: "Check http://this-domain-should-not-exist-12345.com", + message: "Check http://this-domain-should-not-exist-12345.invalid", expectError: true, expectedWarnings: 0, },