From 1ac8d0fd33fdcb94316901aac682b70adcfd26db Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 3 Dec 2019 16:49:02 +0000 Subject: [PATCH] Try to make the tests less flakey --- tests/30rooms/04messages.pl | 4 ++-- tests/50federation/31room-send.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/30rooms/04messages.pl b/tests/30rooms/04messages.pl index e49206e86..9a267a515 100644 --- a/tests/30rooms/04messages.pl +++ b/tests/30rooms/04messages.pl @@ -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 { @@ -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 { diff --git a/tests/50federation/31room-send.pl b/tests/50federation/31room-send.pl index 7c6c6d279..585d7d56b 100644 --- a/tests/50federation/31room-send.pl +++ b/tests/50federation/31room-send.pl @@ -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 {