Skip to content

Commit

Permalink
tests: Error::Reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth committed Nov 16, 2024
1 parent 646b626 commit ea5dcb2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,9 @@ mod tests {
}

#[ignore]
#[ignore]
#[test]
fn test_error_reqwest() {
let result = std::fs::read_to_string(""); // TODO
assert!(result.is_err());

#[tokio::test]
async fn test_error_reqwest() {
let result = reqwest::get("").await;
let error: Error = result.unwrap_err().into();

assert!(matches!(error, Error::Reqwest(_)));
Expand Down

0 comments on commit ea5dcb2

Please sign in to comment.