Fix test_skip_cache_unsupported

This commit is contained in:
Matthias 2023-02-27 21:51:34 +01:00 committed by Matthias Endler
parent f64c60aac0
commit c549213bfe

View file

@ -770,15 +770,16 @@ mod cli {
.write_stdin(format!("{unsupported_url}\n{excluded_url}"))
.arg("--cache")
.arg("--verbose")
.arg("--no-progress")
.arg("--exclude")
.arg(excluded_url)
.arg("--")
.arg("-")
.assert()
.stderr(contains(format!(
"[IGNORED] {unsupported_url} | Unsupported Error creating request client\n"
.stdout(contains(format!(
"[IGNORED] {unsupported_url} | Unsupported: Error creating request client\n"
)))
.stderr(contains(format!("[EXCLUDED] {excluded_url} | Excluded\n")));
.stdout(contains(format!("[EXCLUDED] {excluded_url} | Excluded\n")));
// The cache file should be empty, because the only checked URL is
// unsupported and we don't want to cache that. It might be supported in