From e6a63a78f6ed84b102c136865f7f604f53e15597 Mon Sep 17 00:00:00 2001 From: Jeffrey Finkelstein Date: Sun, 6 Feb 2022 18:03:13 -0500 Subject: [PATCH] tests: fix no_stderr check in stderr_only_bytes() Fix a bug in `stderr_only_bytes()` where it was unintentionally checking `no_stderr()` when it should have been checking `no_stdout()`. --- tests/common/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index d21aea968..4db4e2561 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -356,7 +356,7 @@ impl CmdResult { /// of the passed value /// 2. the command resulted in an empty stdout stream pub fn stderr_only_bytes>(&self, msg: T) -> &Self { - self.no_stderr().stderr_is_bytes(msg) + self.no_stdout().stderr_is_bytes(msg) } pub fn fails_silently(&self) -> &Self {