Skip to content

Commit 08ccfbe

Browse files
committed
Fix tests on Xcode versions before 11.4
1 parent 31bd9b6 commit 08ccfbe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## User settings
66
xcuserdata/
7+
.DS_Store
8+
.swiftpm
79

810
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
911
*.xcscmblueprint

Tests/CryptoOfficeTests/CryptoOfficeTests.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ final class CryptoOfficeTests: XCTestCase {
2929
)
3030

3131
let data = try file.decrypt(password: "pass")
32-
let archive = try XCTUnwrap(Archive(data: data, accessMode: .read))
32+
guard let archive = Archive(data: data, accessMode: .read)
33+
else { return XCTFail("archive could not be created from the decrypted file") }
34+
3335
XCTAssertEqual(Array(archive).count, 10)
3436
}
3537
}

0 commit comments

Comments
 (0)