fix: Use pattern matching for double-Result filter in bottest
This commit is contained in:
parent
eea9b24ef0
commit
51a0e71f2c
1 changed files with 4 additions and 1 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue