File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -59,18 +59,18 @@ extension AllTests.ErrorReportingTests {
59
59
}
60
60
61
61
@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 : {
74
74
// setup
75
75
try await Package ( id: . id1, url: " 1 " . asGithubUrl. url, processingStage: . ingestion) . save ( on: app. db)
76
76
You can’t perform that action at this time.
0 commit comments