From c5b7bc1236676e62f0d56f8c9679d4510b6c9b6e Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Sun, 8 Jun 2025 11:59:26 -0400 Subject: [PATCH] fix: Run tests single-threaded to avoid env var race conditions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .github/workflows/ci.yml | 4 ++-- .pre-commit-config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a475192..d406b4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,9 +73,9 @@ jobs: - name: Build run: cargo build --verbose - name: Run unit tests - run: cargo test --verbose + run: cargo test --verbose -- --test-threads=1 - name: Run e2e tests - run: cargo test --test '*' --verbose + run: cargo test --test '*' --verbose -- --test-threads=1 fmt: name: Rustfmt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfc5b7b..e6dff23 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,14 +25,14 @@ repos: - id: cargo-test name: cargo test - entry: cargo test + entry: cargo test -- --test-threads=1 language: system types: [rust] pass_filenames: false - id: cargo-test-e2e name: cargo e2e tests - entry: cargo test --test '*' + entry: cargo test --test '*' -- --test-threads=1 language: system types: [rust] pass_filenames: false