Skip to content

Commit c619bd6

Browse files
committed
Fix test Analyzer_error_reporting
1 parent 07392a3 commit c619bd6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Tests/AppTests/ErrorReportingTests.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ extension AllTests.ErrorReportingTests {
5959
}
6060

6161
@Test func Analyzer_error_reporting() async throws {
62-
let capturingLogger = CapturingLogger()
63-
try await withDependencies {
64-
$0.fileManager.fileExists = { @Sendable _ in true }
65-
$0.logger.set(to: capturingLogger)
66-
$0.shell.run = { @Sendable cmd, _ in
67-
if cmd.description == "git tag" { return "1.0.0" }
68-
// returning a blank string will cause an exception when trying to
69-
// decode it as the manifest result - we use this to simulate errors
70-
return "invalid"
71-
}
72-
} operation: {
73-
try await withApp { app in
62+
try await withApp { app in
63+
let capturingLogger = CapturingLogger()
64+
try await withDependencies {
65+
$0.fileManager.fileExists = { @Sendable _ in true }
66+
$0.logger.set(to: capturingLogger)
67+
$0.shell.run = { @Sendable cmd, _ in
68+
if cmd.description == "git tag" { return "1.0.0" }
69+
// returning a blank string will cause an exception when trying to
70+
// decode it as the manifest result - we use this to simulate errors
71+
return "invalid"
72+
}
73+
} operation: {
7474
// setup
7575
try await Package(id: .id1, url: "1".asGithubUrl.url, processingStage: .ingestion).save(on: app.db)
7676

0 commit comments

Comments
 (0)