Skip to content

Commit

Permalink
Adapt lagging_clients_should_be_disconnected() test to updated requ…
Browse files Browse the repository at this point in the history
…est dependency
  • Loading branch information
Rafał Chabowski committed Jul 25, 2024
1 parent 318a36d commit 686413a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions event_sidecar/src/event_stream_server/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,13 +959,11 @@ async fn lagging_clients_should_be_disconnected() {
let kind = result
.unwrap_err()
.source()
.expect("reqwest::Error should have source")
.downcast_ref::<hyper::Error>()
.expect("reqwest::Error's source should be a hyper::Error")
.expect("should have source")
.source()
.expect("hyper::Error should have source")
.expect("should have source")
.downcast_ref::<io::Error>()
.expect("hyper::Error's source should be a std::io::Error")
.expect("should be a std::io::Error")
.kind();
assert!(matches!(kind, io::ErrorKind::UnexpectedEof));
};
Expand Down

0 comments on commit 686413a

Please sign in to comment.