Bump vitest testTimeout to 30s for slow PBKDF2 (600k iters) derivations
All checks were successful
Test, Build & Deploy / test-and-build (push) Successful in 1m36s
Test, Build & Deploy / deploy (push) Successful in 20s

The crypto suite's deriveKey tests exceeded vitest's default 5s per-test
timeout in CI (passed locally only because the host is faster). Set a 30s
per-test timeout so the PBKDF2-heavy tests don't flake the pipeline.
This commit is contained in:
hermes-explorigin 2026-08-30 19:15:06 +00:00
parent aa651568af
commit 8652dab880

View File

@ -43,5 +43,8 @@ export default defineConfig(({ command }) => ({
globals: true, globals: true,
setupFiles: ['./tests/setup.js'], setupFiles: ['./tests/setup.js'],
include: ['src/**/*.test.js', 'tests/**/*.test.js'], include: ['src/**/*.test.js', 'tests/**/*.test.js'],
// PBKDF2 (600k iterations) derivations are slow; don't let the default 5s
// per-test timeout flake the suite on slower CI hosts.
testTimeout: 30000,
}, },
})) }))