Skip to content

Commit 86b5a39

Browse files
committed
fix native auth unit tests for visionOS
1 parent 3531e03 commit 86b5a39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MSAL/test/unit/native_auth/cache/MSALNativeAuthCacheAccessorTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ import XCTest
2929

3030
final class MSALNativeAuthCacheAccessorTest: XCTestCase {
3131
// Based on the OS the access to the Keychain is different
32-
#if os(iOS)
32+
#if !os(macOS)
3333
private let tokenCache: MSIDDefaultTokenCacheAccessor = {
3434
let dataSource = MSIDKeychainTokenCache()
3535
return MSIDDefaultTokenCacheAccessor(dataSource: dataSource, otherCacheAccessors: [])
3636
}()
3737

3838
private let accountMetadataCache: MSIDAccountMetadataCacheAccessor = MSIDAccountMetadataCacheAccessor(dataSource: MSIDKeychainTokenCache())
39-
#elseif os(macOS)
39+
#else
4040
private let tokenCache: MSIDDefaultTokenCacheAccessor = {
4141
let dataSource = MSIDTestCacheDataSource()
4242
return MSIDDefaultTokenCacheAccessor(dataSource: dataSource, otherCacheAccessors: [])

MSAL/test/unit/native_auth/network/MSALNativeAuthUrlRequestSerializerTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ final class MSALNativeAuthUrlRequestSerializerTests: MSALNativeAuthTestCase {
132132

133133
Self.logger.expectation = expectation
134134
var impossibleToEncode = [String: Any]()
135-
#if os(iOS)
135+
#if !os(macOS)
136136
impossibleToEncode = [
137137
"param": UIView()
138138
]
139-
#elseif os(macOS)
139+
#else
140140
impossibleToEncode = [
141141
"param": NSView()
142142
]

0 commit comments

Comments
 (0)