Skip to content

Commit 12da394

Browse files
committed
Fix keychain test condition
1 parent a30f7af commit 12da394

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/BasicsTests/AuthorizationProviderTests.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ final class AuthorizationProviderTests: XCTestCase {
4343
}
4444

4545
func testKeychain() throws {
46-
#if os(macOS) && ENABLE_KEYCHAIN_TEST
47-
#else
46+
#if !os(macOS) || !ENABLE_KEYCHAIN_TEST
4847
try XCTSkipIf(true)
49-
#endif
50-
48+
#else
5149
var provider = KeychainAuthorizationProvider()
5250
self.run(for: &provider)
51+
#endif
5352
}
5453

5554
private func run<Provider>(for provider: inout Provider) where Provider: AuthorizationProvider {

0 commit comments

Comments
 (0)