aboutsummaryrefslogtreecommitdiff
path: root/brokenlinks/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-07-02 02:07:43 +0700
committerShulhan <ms@kilabit.info>2025-11-20 17:12:19 +0700
commit5301c666eec35699bbb9024678bb37adc057404c (patch)
tree384516772bd4f6fc6cbcd08eea407dda89d4bee8 /brokenlinks/testdata
parentc5d26d9a6c039816ce8369c34dd5ea33fac660a1 (diff)
downloadjarink-5301c666eec35699bbb9024678bb37adc057404c.tar.xz
brokenlinks: fix infinite loop on unknown host
On link with invalid domain, it should break and return the error immediately.
Diffstat (limited to 'brokenlinks/testdata')
-rw-r--r--brokenlinks/testdata/exp_cache.json4
-rw-r--r--brokenlinks/testdata/web/index.html3
2 files changed, 5 insertions, 2 deletions
diff --git a/brokenlinks/testdata/exp_cache.json b/brokenlinks/testdata/exp_cache.json
index 563164d..8b84ff7 100644
--- a/brokenlinks/testdata/exp_cache.json
+++ b/brokenlinks/testdata/exp_cache.json
@@ -2,7 +2,7 @@
"scanned_links": {
"http://127.0.0.1:11900": {
"url": "http://127.0.0.1:11900",
- "size": 976,
+ "size": 1064,
"response_code": 200
},
"http://127.0.0.1:11900/page2": {
@@ -12,7 +12,7 @@
},
"https://127.0.0.1:11838": {
"url": "https://127.0.0.1:11838",
- "size": 976,
+ "size": 1064,
"response_code": 200
}
}
diff --git a/brokenlinks/testdata/web/index.html b/brokenlinks/testdata/web/index.html
index 596d374..88f1184 100644
--- a/brokenlinks/testdata/web/index.html
+++ b/brokenlinks/testdata/web/index.html
@@ -29,5 +29,8 @@ SPDX-License-Identifier: GPL-3.0-only
<!-- Pages with insecure TLS -->
<a href="https://127.0.0.1:11838">Insecure pages</a>
+
+ <!-- Pages with invalid domain -->
+ <a href="https://domain">Invalid domain</a>
</body>
</html>