diff --git a/pingora-core/src/connectors/mod.rs b/pingora-core/src/connectors/mod.rs index 6bfd7b45..98ed18e5 100644 --- a/pingora-core/src/connectors/mod.rs +++ b/pingora-core/src/connectors/mod.rs @@ -656,7 +656,7 @@ mod tests { // make a new connection to mock uds let mut stream = connector.new_stream(&peer).await.unwrap(); let mut buf = [0; 9]; - let _ = stream.read(&mut buf).await.unwrap(); + stream.read_exact(&mut buf).await.unwrap(); assert_eq!(&buf, b"it works!"); // Test connection reuse by releasing and getting the stream back