From abc9b4bc523f50eade2d10536dd7502d0d8de62a Mon Sep 17 00:00:00 2001 From: Ilya Bogin Date: Wed, 14 Oct 2026 07:26:52 +0300 Subject: [PATCH] test(e2e): move test_dead_page off example.com example.com now serves its page on every path, so a made-up path there returns content with exit 0 instead of a 404. Point the test at an IANA 404 instead; the assertions (exit 1, error "Not found") are unchanged. Co-Authored-By: Claude Opus 5.5 --- tests/e2e/test_fetch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/test_fetch.py b/tests/e2e/test_fetch.py index 2bdc0fe..46a5d22 100644 --- a/tests/e2e/test_fetch.py +++ b/tests/e2e/test_fetch.py @@ -86,7 +86,9 @@ def test_unparseable_url(kn): def test_dead_page(kn): - res = kn("fetch", "https://example.com/nonexistent-xyz-12345") + # Not example.com: since Oct 2026 it serves its page on every path, + # so a made-up path there is no longer a dead page. + res = kn("fetch", "https://www.iana.org/nonexistent-xyz-12345") assert res.code == 1 data = res.yaml() assert data["error"] == "Not found"