From 0d11497d2133f1973321ae383e139a9f1a71500f Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 22 Jul 2018 11:08:16 -0400 Subject: tests: be looser with gzip failure Don't expect the exact error message. Instead, just ask that the error message exist and be non-empty. Fixes #903 --- tests/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index 9b6154d2..8a38f545 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1869,7 +1869,7 @@ fn compressed_failing_gzip() { let output = cmd.output().unwrap(); let err = String::from_utf8_lossy(&output.stderr); - assert_eq!(err.contains("not in gzip format"), true); + assert!(!err.is_empty()); } sherlock!(feature_196_persistent_config, "sherlock", -- cgit v1.2.3