Skip to content

Commit 632e1b6

Browse files
committed
fixup! test: add the start of an integration test for room history sharing
1 parent 51afaba commit 632e1b6

File tree

1 file changed

+13
-2
lines changed
  • testing/matrix-sdk-integration-testing/src/tests

1 file changed

+13
-2
lines changed

testing/matrix-sdk-integration-testing/src/tests/e2ee.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,8 +1244,19 @@ async fn test_history_share_on_invite() -> Result<()> {
12441244
.unwrap()
12451245
}
12461246

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");
1247+
timeout(
1248+
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");
12491260

12501261
bob.sync_once().await?;
12511262
let alice_devices = devices_seen(&bob, alice.user_id().unwrap()).await;

0 commit comments

Comments
 (0)