We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51afaba commit 632e1b6Copy full SHA for 632e1b6
testing/matrix-sdk-integration-testing/src/tests/e2ee.rs
@@ -1244,8 +1244,19 @@ async fn test_history_share_on_invite() -> Result<()> {
1244
.unwrap()
1245
}
1246
1247
- let bob_devices = devices_seen(&alice, bob.user_id().unwrap()).await;
1248
- assert_eq!(bob_devices.devices().count(), 1, "Alice did not see bob's device");
+ timeout(
+ async {
1249
+ loop {
1250
+ let bob_devices = devices_seen(&alice, bob.user_id().unwrap()).await;
1251
+ if bob_devices.devices().count() >= 1 {
1252
+ return;
1253
+ }
1254
1255
+ },
1256
+ Duration::from_secs(5),
1257
+ )
1258
+ .await
1259
+ .expect("Alice did not see bob's device");
1260
1261
bob.sync_once().await?;
1262
let alice_devices = devices_seen(&bob, alice.user_id().unwrap()).await;
0 commit comments