diff --git a/crates/voelin-core/src/link/tests.rs b/crates/voelin-core/src/link/tests.rs index 67165c4..fe7efeb 100644 --- a/crates/voelin-core/src/link/tests.rs +++ b/crates/voelin-core/src/link/tests.rs @@ -1814,11 +1814,12 @@ async fn a_session_that_ends_during_the_connect_syncs_says_why() { tokio::time::sleep(Duration::from_millis(2)).await; }; voelin_proto::test_util::eventually(WAIT, "the three subscriptions", || { - handle - .requests() + let requests = handle.requests(); + let subscribed = requests .iter() .filter(|logged| matches!(&logged.request.op, Some(v1::request::Op::Subscribe(_)))) - .count() == 3 + .count(); + subscribed == 3 }) .await; for scope in [ScopeId::Home, ScopeId::Server(1)] {