Skip to content

test: run CORS config tests in serial#75

Merged
think-in-universe merged 2 commits intomainfrom
test/fix-config-flaky
Dec 11, 2025
Merged

test: run CORS config tests in serial#75
think-in-universe merged 2 commits intomainfrom
test/fix-config-flaky

Conversation

@think-in-universe
Copy link
Contributor

@think-in-universe think-in-universe commented Dec 11, 2025

The CORS config tests are quite flaky when running in parallel. The fix run the tests in parallel.

@think-in-universe think-in-universe changed the title test: run CORS config test in serial test: run CORS config tests in serial Dec 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the serial_test crate to ensure CORS configuration tests run sequentially, preventing race conditions from concurrent environment variable manipulation. All seven CORS tests that read/write the CORS_ALLOWED_ORIGINS environment variable are now properly marked to run in serial.

  • Adds serial_test = "3.0" as a dev dependency
  • Marks all CORS config tests with #[serial_test::serial] attribute to prevent test interference

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
crates/config/Cargo.toml Adds serial_test dev dependency for test serialization
crates/config/src/lib.rs Adds #[serial_test::serial] attribute to all 7 CORS config tests
Cargo.lock Updates lock file with serial_test and its transitive dependencies (scc, sdd, serial_test_derive)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@think-in-universe think-in-universe merged commit ce9474a into main Dec 11, 2025
1 check passed
@think-in-universe think-in-universe deleted the test/fix-config-flaky branch December 11, 2025 07:31
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.

3 participants