Skip to content

Commit fb9bad0

Browse files
committed
chore: increase sleeps in timeline queue tests?
Signed-off-by: Benjamin Bouvier <[email protected]>
1 parent b275fba commit fb9bad0

File tree

1 file changed

+4
-4
lines changed
  • crates/matrix-sdk-ui/tests/integration/timeline

1 file changed

+4
-4
lines changed

crates/matrix-sdk-ui/tests/integration/timeline/queue.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ async fn message_order() {
8787
assert_eq!(value.content().as_message().unwrap().body(), "Second.");
8888
});
8989

90-
// Wait 200ms for the first msg, 100ms for the second, 100ms for overhead
91-
sleep(Duration::from_millis(400)).await;
90+
// Wait 200ms for the first msg, 100ms for the second, 200ms for overhead
91+
sleep(Duration::from_millis(500)).await;
9292

9393
// The first item should be updated first
9494
assert_next_matches!(timeline_stream, VectorDiff::Set { index: 0, value } => {
@@ -185,8 +185,8 @@ async fn retry_order() {
185185
assert_eq!(value.content().as_message().unwrap().body(), "First!");
186186
});
187187

188-
// Wait 200ms for the first msg, 100ms for the second, 200ms for overhead
189-
sleep(Duration::from_millis(500)).await;
188+
// Wait 200ms for the first msg, 100ms for the second, 300ms for overhead
189+
sleep(Duration::from_millis(600)).await;
190190

191191
// The second item should be updated first, since it was retried first
192192
assert_next_matches!(timeline_stream, VectorDiff::Set { index: 1, value } => {

0 commit comments

Comments
 (0)