Merge pull request #3379 from jfinkels/tests-no-stdout-error-message

tests: print stdout in error msg for no_stdout()
This commit is contained in:
Sylvestre Ledru 2022-04-09 19:59:33 +02:00 committed by GitHub
commit 398ded6789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ impl CmdResult {
assert!(
self.stdout.is_empty(),
"Expected stdout to be empty, but it's:\n{}",
self.stderr_str()
self.stdout_str()
);
self
}