aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-05-29 13:16:49 +0700
committerShulhan <ms@kilabit.info>2025-05-29 13:16:49 +0700
commit0148e3b3fd94e4c8359e97b402cc09c85768b2c3 (patch)
tree894730dd2e737571c98cdb5f844f198b9a4b139a
parentcce49486f36bb4ba7702973cc598af9bcb1f4103 (diff)
downloadjarink-0148e3b3fd94e4c8359e97b402cc09c85768b2c3.tar.xz
testdata/web: remove anchor to external website
The test should not require internet connection to be passed.
-rw-r--r--deadlinks_test.go6
-rw-r--r--testdata/web/index.html1
2 files changed, 0 insertions, 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
<img src="/broken.png" />
<a href="/brokenPage">Broken page</a>
<a href="/page2">Page 2</a>
- <a href="https://kilabit.info/brokenPage">Broken page at kilabit.info</a>
<a href="/broken.html">Broken HTML</a>
</body>
</html>