Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Dec 1, 2023
1 parent 2ddf01e commit 55dc059
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion linkerd/proxy/pool/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::ok_expect)]

use crate::PoolQueue;
use futures::prelude::*;
use linkerd_proxy_core::Update;
Expand Down Expand Up @@ -299,7 +301,10 @@ async fn failfast() {
let call = poolq.call(());
time::sleep(time::Duration::from_secs(1)).await;
assert!(call.await.is_err(), "call should failfast");
if let Ok(_) = time::timeout(time::Duration::from_secs(1), poolq.ready()).await {
if time::timeout(time::Duration::from_secs(1), poolq.ready())
.await
.is_ok()
{
panic!("queue should not be ready while in failfast");
}

Expand Down

0 comments on commit 55dc059

Please sign in to comment.