Skip to content

Commit a2dc5d8

Browse files
committed
Fix assertion messages and expected exit status
1 parent d5b61df commit a2dc5d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/tools/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,8 @@ mod tests {
907907
let output = cmd.output().expect("can run git");
908908
let stdout = output.stdout.to_str().expect("valid UTF-8");
909909
let status = output.status.code().expect("terminated normally");
910-
911-
assert_eq!(stdout, "", "should be no config variable to display");
912-
assert_eq!(status, 1, "exit status should indicate config variable is absent");
910+
assert_eq!(stdout, "", "should be no config variables to display");
911+
assert_eq!(status, 0, "reading the config should nonetheless succeed");
913912

914913
temp.close().expect("Test bug: Should be able to delete everything");
915914
}

0 commit comments

Comments
 (0)