diff --git a/src/hp/derp/http/client.rs b/src/hp/derp/http/client.rs index 52a808d5873..169ab01618d 100644 --- a/src/hp/derp/http/client.rs +++ b/src/hp/derp/http/client.rs @@ -918,7 +918,7 @@ mod tests { // ensure that the client will bubble up any connection error & not // just loop ad infinitum attempting to connect - if let Ok(_) = client.recv_detail().await { + if (client.recv_detail().await).is_ok() { bail!("expected client with bad derp region detail to return with an error"); } Ok(())