Bind the count in the subscription wait so both rustfmt versions format it alike
Nightly rustfmt wanted `.count()` and `== 3` on separate lines in the wait for the three subscriptions of a_session_that_ends_during_the_connect_syncs_says_why, 1.94 (which CI pins) did not. The count is a local now, and the comparison a line of its own. Nightly rustfmt differs from the baseline's six diffs only (history.rs, encoder.rs, discovery.rs, chat.rs, studio.rs, engine.rs) after it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b2b792926
commit
e06ed43b07
1 file changed
+4
-3
@@ -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)] {
|
||||
|
||||
Reference in new issue
Block a user