From 686413a98910b35ae7165df34c0cf6f4b3d640e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Chabowski?= Date: Thu, 25 Jul 2024 17:16:27 +0200 Subject: [PATCH] Adapt `lagging_clients_should_be_disconnected()` test to updated request dependency --- event_sidecar/src/event_stream_server/tests.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/event_sidecar/src/event_stream_server/tests.rs b/event_sidecar/src/event_stream_server/tests.rs index ea9de197..15527e72 100644 --- a/event_sidecar/src/event_stream_server/tests.rs +++ b/event_sidecar/src/event_stream_server/tests.rs @@ -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::() - .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::() - .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)); };