Skip to content

Commit 4eeadfb

Browse files
committed
Explicitly removed USER env variables.
1 parent 65f2a87 commit 4eeadfb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/testsuite/new.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ fn author_without_user_or_email() {
217217
#[cargo_test]
218218
fn finds_author_email_only() {
219219
create_empty_gitconfig();
220-
cargo_process("new foo").env("EMAIL", "baz").run();
220+
cargo_process("new foo")
221+
.env_remove("USER")
222+
.env_remove("USERNAME")
223+
.env_remove("NAME")
224+
.env_remove("EMAIL").env("EMAIL", "baz").run();
221225

222226
let toml = paths::root().join("foo/Cargo.toml");
223227
println!("{:?}", toml);

0 commit comments

Comments
 (0)