Skip to content

Commit

Permalink
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions crates/matrix-sdk-ui/tests/integration/room_list_service.rs
Original file line number Diff line number Diff line change
@@ -1476,6 +1476,16 @@ async fn test_dynamic_entries_stream() -> Result<(), Error> {
push front [ "!r4:bar.org" ];
end;
};
assert_entries_batch! {
[dynamic_entries_stream]
set [ 1 ] [ "!r1:bar.org" ];
end;
};
assert_entries_batch! {
[dynamic_entries_stream]
set [ 0 ] [ "!r4:bar.org" ];
end;
};
assert_pending!(dynamic_entries_stream);

sync_then_assert_request_and_fake_response! {
@@ -1588,6 +1598,16 @@ async fn test_dynamic_entries_stream() -> Result<(), Error> {
push front [ "!r7:bar.org" ];
end;
};
assert_entries_batch! {
[dynamic_entries_stream]
set [ 1 ] [ "!r5:bar.org" ];
end;
};
assert_entries_batch! {
[dynamic_entries_stream]
set [ 0 ] [ "!r7:bar.org" ];
end;
};
assert_pending!(dynamic_entries_stream);

// Now, let's change the dynamic entries!

0 comments on commit 813ce6a

Please sign in to comment.