Skip to content

Commit 20fddd4

Browse files
committed
Automatic DB revert in case of tests failure
1 parent 8752829 commit 20fddd4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Tests/OrdersTests/Utils/withApp.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func withApp(
3636

3737
try await app.autoRevert()
3838
} catch {
39+
try? await app.autoRevert()
3940
try await app.asyncShutdown()
4041
throw error
4142
}

Tests/PassesTests/Utils/withApp.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func withApp(
3636

3737
try await app.autoRevert()
3838
} catch {
39+
try? await app.autoRevert()
3940
try await app.asyncShutdown()
4041
throw error
4142
}

0 commit comments

Comments
 (0)