Skip to content

Commit

Permalink
Automatic DB revert in case of tests failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Dec 17, 2024
1 parent 8752829 commit 20fddd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tests/OrdersTests/Utils/withApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func withApp(

try await app.autoRevert()
} catch {
try? await app.autoRevert()
try await app.asyncShutdown()
throw error
}
Expand Down
1 change: 1 addition & 0 deletions Tests/PassesTests/Utils/withApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func withApp(

try await app.autoRevert()
} catch {
try? await app.autoRevert()
try await app.asyncShutdown()
throw error
}
Expand Down

0 comments on commit 20fddd4

Please sign in to comment.