From f88d9d5ff3a97a684a6488a5f79d41c5341d3f3d Mon Sep 17 00:00:00 2001 From: Ralph Plawetzki Date: Thu, 12 Dec 2024 10:49:34 +0100 Subject: [PATCH] Both KeychainAccessProviders need to be possible --- .../macos/keychain/KeychainAccessProviderTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/cryptomator/macos/keychain/KeychainAccessProviderTest.java b/src/test/java/org/cryptomator/macos/keychain/KeychainAccessProviderTest.java index 19c0ad2..6d8d6b6 100644 --- a/src/test/java/org/cryptomator/macos/keychain/KeychainAccessProviderTest.java +++ b/src/test/java/org/cryptomator/macos/keychain/KeychainAccessProviderTest.java @@ -12,7 +12,9 @@ public class KeychainAccessProviderTest { public void testLoadMacSystemKeychainAccess() { var provider = KeychainAccessProvider.get().findAny(); Assertions.assertTrue(provider.isPresent()); - Assertions.assertInstanceOf(TouchIdKeychainAccess.class, provider.get()); + Assertions.assertTrue( + provider.get() instanceof TouchIdKeychainAccess + || provider.get() instanceof MacSystemKeychainAccess); } }