Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Oct 29, 2024
1 parent 373b5a7 commit 2526575
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/source/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,11 @@ mod test {
fn test_extract_fail() {
let fancy_log = LoggingOutputHandler::default();
let tempdir = tempfile::tempdir().unwrap();
let res = extract_zip("", tempdir.path(), &fancy_log);
assert!(matches!(res.err(), Some(SourceError::FileNotFound(_))));
let result = extract_zip("", tempdir.path(), &fancy_log);
assert!(matches!(
result,
Err(SourceError::Io(e)) if e.kind() == std::io::ErrorKind::NotFound
));
}

#[test]
Expand Down

0 comments on commit 2526575

Please sign in to comment.