1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-22 07:51:19 +00:00

fix: Run tests single-threaded to avoid env var race conditions

- Update pre-commit hooks to use --test-threads=1
- Update CI workflow to run tests single-threaded
- This prevents test failures due to concurrent environment variable modifications

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-06-08 11:59:26 -04:00
parent 739a80fe1e
commit c5b7bc1236
Failed to extract signature
2 changed files with 4 additions and 4 deletions

View file

@ -73,9 +73,9 @@ jobs:
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
- name: Run unit tests - name: Run unit tests
run: cargo test --verbose run: cargo test --verbose -- --test-threads=1
- name: Run e2e tests - name: Run e2e tests
run: cargo test --test '*' --verbose run: cargo test --test '*' --verbose -- --test-threads=1
fmt: fmt:
name: Rustfmt name: Rustfmt

View file

@ -25,14 +25,14 @@ repos:
- id: cargo-test - id: cargo-test
name: cargo test name: cargo test
entry: cargo test entry: cargo test -- --test-threads=1
language: system language: system
types: [rust] types: [rust]
pass_filenames: false pass_filenames: false
- id: cargo-test-e2e - id: cargo-test-e2e
name: cargo e2e tests name: cargo e2e tests
entry: cargo test --test '*' entry: cargo test --test '*' -- --test-threads=1
language: system language: system
types: [rust] types: [rust]
pass_filenames: false pass_filenames: false