Skip to content

Commit

Permalink
Try to make the tests less flakey
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Dec 3, 2019
1 parent d7bda11 commit 1ac8d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/30rooms/04messages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
content => {
msgtype => "m.text",
body => "This is a message",
"org.matrix.self_destruct_after" => $now_ms + 500,
"org.matrix.self_destruct_after" => $now_ms + 1000,
},
)->then( sub {
await_sync_timeline_contains($user, $room_id, check => sub {
Expand All @@ -373,7 +373,7 @@
})
})->then( sub {
# wait for the message to expire
delay( 1 )
delay( 1.5 )
})->then( sub {
my $iter = 0;
retry_until_success {
Expand Down
2 changes: 1 addition & 1 deletion tests/50federation/31room-send.pl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
content => {
msgtype => "m.text",
body => "This is a message",
"org.matrix.self_destruct_after" => $now_ms + 500,
"org.matrix.self_destruct_after" => $now_ms + 1000,
},
)
})->then( sub {
Expand Down

0 comments on commit 1ac8d0f

Please sign in to comment.