Files
fusion/.changeset/core-master-key-skip-keychain-in-tests.md
gsxdsm 1f0bb7e018 fix(core): skip real keychain in tests to stop 15s keytar hangs
MasterKeyManager.loadKeytar() now bails out early when
FUSION_MASTER_KEY_DISABLE_KEYCHAIN=1, and the core vitest setup sets that
flag for every worker. Eight tests across master-key/secrets-store/
secrets-sync-passphrase were timing out at exactly the 15s testTimeout
because they constructed MasterKeyManager without injecting a fake
KeytarLike, which made loadKeytar() reach the real OS keychain.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 22:45:29 -07:00

324 B

@fusion/core
@fusion/core
patch

Stop MasterKeyManager from probing the real macOS/Linux keychain during tests. A new FUSION_MASTER_KEY_DISABLE_KEYCHAIN=1 env var forces the file backend, and the core vitest setup sets it so tests no longer hang for 15s in keytar.getPassword(...) on machines without a usable keychain.