Skip to content

Commit 806015b

Browse files
committed
Fix SitemapTests
1 parent 1c715b9 commit 806015b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/AppTests/SitemapTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class SitemapTests: SnapshotTestCase {
4949
// Ensure sitemap routing is configured in prod
5050
try await withDependencies {
5151
$0.environment.current = { .production }
52+
$0.httpClient.postPlausibleEvent = App.HTTPClient.noop
5253
} operation: {
5354
// We also need to set up a new app that's configured for production,
5455
// because app.test is not affected by @Dependency overrides.
@@ -100,6 +101,7 @@ class SitemapTests: SnapshotTestCase {
100101
// Ensure sitemap routing is configured in prod
101102
try await withDependencies {
102103
$0.environment.current = { .production }
104+
$0.httpClient.postPlausibleEvent = App.HTTPClient.noop
103105
} operation: {
104106
// We also need to set up a new app that's configured for production,
105107
// because app.test is not affected by @Dependency overrides.

0 commit comments

Comments
 (0)