From 8652dab8806821a334c76d769f50e65469992dd3 Mon Sep 17 00:00:00 2001 From: hermes-explorigin Date: Sun, 30 Aug 2026 19:15:06 +0000 Subject: [PATCH] Bump vitest testTimeout to 30s for slow PBKDF2 (600k iters) derivations 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. --- vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.js b/vite.config.js index 9d50528..e59f417 100644 --- a/vite.config.js +++ b/vite.config.js @@ -43,5 +43,8 @@ export default defineConfig(({ command }) => ({ globals: true, setupFiles: ['./tests/setup.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, }, }))