From 267b879ed408df46b7b5d78c8aeb010eb53f634f Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Mon, 28 Oct 2024 17:07:20 +0800 Subject: [PATCH] Fix: avoid potential race in tests/profile.rs ... also remove an unnecessary `assert`. --- tests/profile.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/profile.rs b/tests/profile.rs index 596829d4..0e7eba7d 100644 --- a/tests/profile.rs +++ b/tests/profile.rs @@ -97,14 +97,11 @@ fn bin_default_uses_debug_build() { } #[test] +#[serial] fn bin_ignore_cargo_build_target_in_tests() { unsafe { env::set_var("CARGO_BUILD_TARGET", "x86_64-unknown-linux-gnu"); } - assert_eq!( - env::var("CARGO_BUILD_TARGET"), - Ok("x86_64-unknown-linux-gnu".into()) - ); // ^ this env var should be ignored: bin_default_uses_debug_build(); }