From 0148e3b3fd94e4c8359e97b402cc09c85768b2c3 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 29 May 2025 13:16:49 +0700 Subject: testdata/web: remove anchor to external website The test should not require internet connection to be passed. --- deadlinks_test.go | 6 ------ testdata/web/index.html | 1 - 2 files changed, 7 deletions(-) diff --git a/deadlinks_test.go b/deadlinks_test.go index 9570f50..519647d 100644 --- a/deadlinks_test.go +++ b/deadlinks_test.go @@ -61,9 +61,6 @@ func TestDeadLinks_Scan(t *testing.T) { }, { Link: testUrl + `/brokenPage`, Code: http.StatusNotFound, - }, { - Link: `https://kilabit.info/brokenPage`, - Code: http.StatusNotFound, }}, testUrl + `/broken.html`: []deadlinks.Broken{{ Link: testUrl + `/brokenPage`, @@ -89,9 +86,6 @@ func TestDeadLinks_Scan(t *testing.T) { }, { Link: testUrl + `/brokenPage`, Code: http.StatusNotFound, - }, { - Link: `https://kilabit.info/brokenPage`, - Code: http.StatusNotFound, }}, testUrl + `/broken.html`: []deadlinks.Broken{{ Link: testUrl + `/brokenPage`, diff --git a/testdata/web/index.html b/testdata/web/index.html index 19a2bae..c6ac324 100644 --- a/testdata/web/index.html +++ b/testdata/web/index.html @@ -7,7 +7,6 @@ SPDX-License-Identifier: GPL-3.0-only Broken page Page 2 - Broken page at kilabit.info Broken HTML -- cgit v1.3