1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

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
This commit is contained in:
Andrew Gallant 2018-07-22 11:08:16 -04:00
parent 22ac2e056e
commit 0d11497d21
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

@ -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",