mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-05 22:47:02 -04:00
Update testing/sliding-sync-integration-test/src/lib.rs
Co-authored-by: Ivan Enderlin <ivan@mnt.io>
This commit is contained in:
@@ -1385,11 +1385,11 @@ mod tests {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
for (user_id, _receipt_data) in receipts {
|
||||
if user_id == client.user_id().unwrap() {
|
||||
found_receipt = true;
|
||||
break 'sync_loop;
|
||||
}
|
||||
let expected_user_id = client.user_id().unwrap();
|
||||
let found_receipt = receipts.iter().any(|(user_id, _)| user_id == expected_user_id);
|
||||
|
||||
if found_receipt {
|
||||
break;
|
||||
}
|
||||
}
|
||||
assert!(found_receipt);
|
||||
|
||||
Reference in New Issue
Block a user