Skip to content

Commit 3e9d3de

Browse files
authored
Merge pull request #1505 from EliahKagan/askpass
Unset GIT_ASKPASS in tests that assume it is unset
2 parents 8ce1ebf + c72a9b2 commit 3e9d3de

File tree

1 file changed

+2
-2
lines changed
  • gix-prompt/tests/options

1 file changed

+2
-2
lines changed

gix-prompt/tests/options/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ mod apply_environment {
4545
#[test]
4646
#[serial]
4747
fn ssh_askpass_is_used_as_fallback() {
48-
let _env = Env::new().set("SSH_ASKPASS", "fallback");
48+
let _env = Env::new().unset("GIT_ASKPASS").set("SSH_ASKPASS", "fallback");
4949

5050
assert_eq!(
5151
Options {
@@ -63,7 +63,7 @@ mod apply_environment {
6363
#[test]
6464
#[serial]
6565
fn ssh_askpass_does_not_override_current_value() {
66-
let _env = Env::new().set("SSH_ASKPASS", "fallback");
66+
let _env = Env::new().unset("GIT_ASKPASS").set("SSH_ASKPASS", "fallback");
6767

6868
assert_eq!(
6969
Options {

0 commit comments

Comments
 (0)