Skip to content

Commit

Permalink
chore(test): bump the timeout to 10 seconds because codecov is slow
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Oct 31, 2024
1 parent 476e270 commit 3cbf449
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/matrix-sdk/tests/integration/send_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ macro_rules! assert_update {
send_error: None,
},
transaction_id: txn,
}))) = timeout(Duration::from_secs(1), $watch.recv()).await
}))) = timeout(Duration::from_secs(10), $watch.recv()).await
);

let content = serialized_event.deserialize().unwrap();
Expand All @@ -136,7 +136,7 @@ macro_rules! assert_update {
Ok(Ok(RoomSendQueueUpdate::UploadedMedia {
related_to,
file,
})) = timeout(Duration::from_secs(1), $watch.recv()).await
})) = timeout(Duration::from_secs(10), $watch.recv()).await
);

assert_eq!(related_to, $related_to);
Expand All @@ -155,7 +155,7 @@ macro_rules! assert_update {
send_handle: _,
},
transaction_id: txn,
}))) = timeout(Duration::from_secs(1), $watch.recv()).await
}))) = timeout(Duration::from_secs(10), $watch.recv()).await
);

assert_eq!(key, $key);
Expand All @@ -171,7 +171,7 @@ macro_rules! assert_update {
Ok(Ok(RoomSendQueueUpdate::ReplacedLocalEvent {
transaction_id: txn,
new_content: serialized_event,
})) = timeout(Duration::from_secs(1), $watch.recv()).await
})) = timeout(Duration::from_secs(10), $watch.recv()).await
);

assert_eq!(txn, $transaction_id);
Expand All @@ -193,7 +193,7 @@ macro_rules! assert_update {
($watch:ident => retry { $(txn=$txn:expr)? }) => {
assert_let!(
Ok(Ok(RoomSendQueueUpdate::RetryEvent { transaction_id: _txn })) =
timeout(Duration::from_secs(1), $watch.recv()).await
timeout(Duration::from_secs(10), $watch.recv()).await
);

$(assert_eq!(_txn, $txn);)?
Expand All @@ -204,7 +204,7 @@ macro_rules! assert_update {
($watch:ident => sent { $(txn=$txn:expr,)? $(event_id=$event_id:expr)? }) => {
assert_let!(
Ok(Ok(RoomSendQueueUpdate::SentEvent { event_id: _event_id, transaction_id: _txn })) =
timeout(Duration::from_secs(1), $watch.recv()).await
timeout(Duration::from_secs(10), $watch.recv()).await
);

$(assert_eq!(_event_id, $event_id);)?
Expand Down

0 comments on commit 3cbf449

Please sign in to comment.