Skip to content

Commit fcc8db0

Browse files
committed
!fixup Fix issues when rebasing.
1 parent fc56818 commit fcc8db0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/matrix-sdk/src/event_cache/linked_chunk.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,11 +1808,15 @@ mod tests {
18081808
let position_after_f =
18091809
Position(position_of_f.chunk_identifier(), position_of_f.index() + 1);
18101810

1811-
linked_chunk.insert_items_at(['p', 'q'], position_after_f)?;
1811+
linked_chunk.insert_items_at(['p', 'q'], position_after_f).await?;
18121812
assert_items_eq!(
18131813
linked_chunk,
18141814
['l', 'm', 'n'] ['o', 'a', 'b'] ['r', 's', 'c'] ['d', 'w', 'x'] ['y', 'z', 'e'] ['f', 'p', 'q']
18151815
);
1816+
assert_eq!(
1817+
linked_chunk.listener().take(),
1818+
&[InsertItems { at: Position(ChunkIdentifier(3), 1), items: vec!['p', 'q'] },]
1819+
);
18161820
assert_eq!(linked_chunk.len(), 18);
18171821
}
18181822

0 commit comments

Comments
 (0)