diff --git a/Tests/AppTests/SitemapTests.swift b/Tests/AppTests/SitemapTests.swift index ac923a254..f7f367ef1 100644 --- a/Tests/AppTests/SitemapTests.swift +++ b/Tests/AppTests/SitemapTests.swift @@ -55,6 +55,7 @@ class SitemapTests: SnapshotTestCase { as: .init(pathExtension: "xml", diffing: .lines)) } + @MainActor func test_siteMap_basic_request() async throws { // Test basic sitemap request // setup @@ -75,7 +76,7 @@ class SitemapTests: SnapshotTestCase { // Validation assertSnapshot(matching: siteMap.render(indentedBy: .spaces(2)), - as: .init(pathExtension: "xml", diffing: .lines), record: true) + as: .init(pathExtension: "xml", diffing: .lines)) } func test_linkablePathUrls() async throws { diff --git a/Tests/AppTests/__Snapshots__/SitemapTests/test_siteMap_basic_request.1.xml b/Tests/AppTests/__Snapshots__/SitemapTests/test_siteMap_basic_request.1.xml new file mode 100644 index 000000000..c23c82c2e --- /dev/null +++ b/Tests/AppTests/__Snapshots__/SitemapTests/test_siteMap_basic_request.1.xml @@ -0,0 +1,7 @@ + + + + http://localhost:8080/Owner/Repo0 + 1970-01-01 + + \ No newline at end of file