Skip to content

test: use fast TEST_KDF vault in beforeEach to avoid Argon2id timeouts in CI - #6

Merged
wardsvelds2l merged 1 commit into
mainfrom
fix/test-timeouts
Jun 1, 2026
Merged

wardsvelds2l merged 1 commit into
mainfrom
fix/test-timeouts

Conversation

@wardsvelds2l

Copy link
Copy Markdown
Owner

Pre-create vault with TEST_KDF (memory=1024, iterations=1) in beforeEach for get.test.ts and add.test.ts, so addCommand reuses fast KDF params instead of creating a new vault with production-grade DEFAULT_KDF_PARAMS (memory=65536, iterations=3). This eliminates heavy Argon2id operations in hooks/tests that were causing 30s timeouts in CI coverage runs. Test 1 in add.test.ts (which exercises vault creation) explicitly removes the pre-created vault and has an extended 60s timeout.

@wardsvelds2l
wardsvelds2l merged commit 7405761 into main Jun 1, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant