Skip to content

fix: give the device-cap session test a CPU-bound timeout - #16

Merged
dataPro-lgtm merged 2 commits into
mainfrom
fix/session-cap-test-timeout
Aug 3, 2026
Merged

dataPro-lgtm merged 2 commits into
mainfrom
fix/session-cap-test-timeout

Conversation

@dataPro-lgtm

Copy link
Copy Markdown
Owner

Summary

sessionSecurity.test.ts > caps active devices and revokes the oldest session performs 11 bcrypt hashes at 12 salt rounds (register + 10 logins). On slow CI runners this exceeds vitest's default 5s test timeout — observed as a flake on PR #13 (run 30818649435) while the suite passes locally in ~5.0s. Give the test an explicit 30s budget.

Test plan

  • pnpm exec vitest run src/sessionSecurity.test.ts — 3 passed

🤖 Generated with Claude Code

dataPro-lgtm and others added 2 commits August 3, 2026 21:39
The test performs 11 bcrypt hashes at 12 salt rounds; slow CI runners can
exceed the default 5s vitest timeout (observed on PR #13 run 30818649435).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dataPro-lgtm
dataPro-lgtm merged commit d89c000 into main Aug 3, 2026
11 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