From 7baaab2fd7d78c17539992a9ee9a068a274ffafc Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Fri, 30 Oct 2026 09:47:16 -0300 Subject: [PATCH] test(auth): give real Argon2id hashing a 30s test budget The default 5s does not fit a chain of 11 hashes on a shared CI runner. The production cost parameters are untouched. Co-Authored-By: Claude Sonnet 5.5 --- services/auth/vitest.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/auth/vitest.config.ts b/services/auth/vitest.config.ts index 2c76e30..2075bce 100644 --- a/services/auth/vitest.config.ts +++ b/services/auth/vitest.config.ts @@ -2,6 +2,10 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { + // Real Argon2id hashes cost 1-3s each on a shared CI runner, and several + // tests chain a dozen of them. The production cost parameters stay as they + // are; the default 5s budget is what does not fit. + testTimeout: 30_000, // session.ts refuses to load without a real signing secret, and ESM hoists // imports - so the value has to exist before any test file is evaluated, // which an assignment inside a test file cannot guarantee.