krz/hutch

an ios client for sourcehut

clone: git clone https://gitbay.org/krz/hutch.git

07b269c82f4d45af44ab7097e4a7cd5953c2af94

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-07-16T00:28:21Z

test: match cached incident fixture to its RSS source

The expected incident declared url: nil while the cachedIncidentRSS it stands
in for carries <link>https://status.sr.ht/issues/1/</link>, so the fixture
contradicted its own input. The repository parses and persists the link
correctly.
 HutchTests/SystemStatusRepositoryTests.swift | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/HutchTests/SystemStatusRepositoryTests.swift b/HutchTests/SystemStatusRepositoryTests.swift
index fb08732..56fa7c0 100644
--- a/HutchTests/SystemStatusRepositoryTests.swift
+++ b/HutchTests/SystemStatusRepositoryTests.swift
@@ -60,7 +60,7 @@ struct SystemStatusRepositoryTests {
                 id: "incident-1",
                 title: "builds.sr.ht outage",
                 summary: "Builds are failing.",
-                url: nil,
+                url: URL(string: "https://status.sr.ht/issues/1/"),
                 publishedAt: Date(timeIntervalSince1970: 200),
                 updatedAt: nil,
                 isActive: true