mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
`strict lookup keeps the strict contract for aliases outside the vault` drove the miss through the macSecurityLookup seam, which getPrivateKeyOrThrow only consults when isMacOs(). On Linux and Windows the strict path is javakeyring, which cannot tell a miss from a denial and deliberately throws, so the test's assertNull failed there — red on the Android job and the Linux/Windows desktop builds of main. Branch on the host like SecureKeyStorageOrThrowTest does: off macOS assert the miss throws SecureStorageException with the PasswordAccessException in its cause chain (coroutine stack-trace recovery may wrap it); on macOS keep the null-on-miss / throw-on-ambiguous assertions. Verified with os.name forced to Linux and natively on macOS (29/29 SecureKeyStorage* tests).