Skip to content

Commit d8432db

Browse files
bryangoemilio
authored andcommitted
Fix: avoid potential race in tests/profile.rs
... also remove an unnecessary `assert`.
1 parent 84d12aa commit d8432db

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/profile.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,11 @@ fn bin_default_uses_debug_build() {
9797
}
9898

9999
#[test]
100+
#[serial]
100101
fn bin_ignore_cargo_build_target_in_tests() {
101102
unsafe {
102103
env::set_var("CARGO_BUILD_TARGET", "x86_64-unknown-linux-gnu");
103104
}
104-
assert_eq!(
105-
env::var("CARGO_BUILD_TARGET"),
106-
Ok("x86_64-unknown-linux-gnu".into())
107-
);
108105
// ^ this env var should be ignored:
109106
bin_default_uses_debug_build();
110107
}

0 commit comments

Comments
 (0)