Skip to content

Commit de1a7cc

Browse files
committed
withMockedHome: Don't swallow errors
The code was silently swallowing errors coming from the function under test, so errors in the tests did not surface as test failures. This throws the error if the cleaning the bin directory doesn't fail first.
1 parent 25315f0 commit de1a7cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/SwiftlyTests/SwiftlyTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ public enum SwiftlyTests {
336336
if cleanBinDir {
337337
try await fs.remove(atPath: Swiftly.currentPlatform.swiftlyBinDir(Self.ctx))
338338
}
339+
throw error
339340
}
340341
}
341342
}

0 commit comments

Comments
 (0)