Skip to content

Commit 1a357fc

Browse files
yannhamclaude
andcommitted
test: use serial_test to serialize otel process context tests
Replace the hand-rolled `TEST_SERIALIZER: Mutex<()>` with the `#[serial_test::serial]` attribute applied at the module level, which is the established pattern already used by other crates in this repo. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b72d5e6 commit 1a357fc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libdd-library-config/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ rmp-serde = "1.3.0"
2525

2626
[dev-dependencies]
2727
tempfile = { version = "3.3" }
28+
serial_test = "3.2"
2829

2930
[target.'cfg(unix)'.dependencies]
3031
memfd = { version = "0.6" }

libdd-library-config/src/otel_process_ctx.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ pub mod linux {
388388
}
389389

390390
#[cfg(test)]
391+
#[serial_test::serial]
391392
mod tests {
392393
use super::MappingHeader;
393394
use anyhow::ensure;

0 commit comments

Comments
 (0)