fix: Use pattern matching for double-Result filter in bottest
Some checks failed
Botlib CI / build (push) Successful in 3s
BotServer CI / build (push) Successful in 24s
Bottest CI / build (push) Failing after 30s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-22 11:41:41 +00:00
parent eea9b24ef0
commit 51a0e71f2c

View file

@ -69,7 +69,10 @@ async fn test_concurrent_requests_handled() {
let successes = results
.iter()
.filter(|r| r.as_ref().is_ok_and(|resp| resp.status().is_success()))
.filter(|r| match r {
Ok(Ok(resp)) => resp.status().is_success(),
_ => false,
})
.count();
assert!(