Skip to content

Commit bf40bf8

Browse files
committed
test: Fix a test.
This patch removes a wait of `VectorDiff::Set`, as it's not possible to receive it, this is wrong.
1 parent 717c7b9 commit bf40bf8

File tree

1 file changed

+0
-10
lines changed
  • testing/matrix-sdk-integration-testing/src/tests/sliding_sync

1 file changed

+0
-10
lines changed

testing/matrix-sdk-integration-testing/src/tests/sliding_sync/room.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,16 +1016,6 @@ async fn test_room_info_notable_update_deduplication() -> Result<()> {
10161016
sleep(Duration::from_secs(2)).await;
10171017
assert_eq!(bob_room.state(), RoomState::Joined);
10181018

1019-
// Room update for join
1020-
assert_let!(Some(diffs) = stream.next().await);
1021-
assert_eq!(diffs.len(), 1);
1022-
assert_matches!(
1023-
&diffs[0],
1024-
VectorDiff::Set { index: 0, value: room } => {
1025-
assert_eq!(room.room_id(), alice_room.room_id());
1026-
}
1027-
);
1028-
10291019
// Sometimes Synapse sends the same message twice. Let's consume useless `Set`…
10301020
// if they arrived before 3s.
10311021
if let Ok(Some(diffs)) = timeout(Duration::from_secs(3), stream.next()).await {

0 commit comments

Comments
 (0)