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 {
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
You can’t perform that action at this time.
0 commit comments