Skip to content

Commit

Permalink
Fix non macOS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHearst committed Oct 21, 2024
1 parent 7a9a6b5 commit 5a63260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/HaversackTests/EphemeralStrategyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ final class EphemeralStrategyTests: XCTestCase {
XCTAssertNil(try haversack.getDeleteMock(item: entity))
}

#if os(macOS)
func testSetGenerateKeyMock() throws {
func loadKey() throws -> SecKey {
let data = try Data(contentsOf: getURLForTestResource(named: "key.bsafe"))
Expand All @@ -180,4 +181,5 @@ final class EphemeralStrategyTests: XCTestCase {
let mockDataValue = try haversack.getGenerateKeyMock(config: keyGenerationConfig)
XCTAssertEqual(mockDataValue, key)
}
#endif
}

0 comments on commit 5a63260

Please sign in to comment.