Skip to content

Commit

Permalink
fixup! test(send queue): add more tests for cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Nov 14, 2024
1 parent 0c18db1 commit de6064c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/matrix-sdk/tests/integration/send_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2343,6 +2343,9 @@ async fn test_cancel_upload_with_uploaded_thumbnail_and_file_active() {
// The thumbnail uploads just fine.
assert_update!(watch => uploaded { related_to = upload_txn, mxc = mxc_uri!("mxc://sdk.rs/thumbnail") });

// Let the file upload request start.
sleep(Duration::from_millis(500)).await;

// Abort the upload.
abort_and_verify(&client, &mut watch, img_content, upload_handle, upload_txn).await;

Expand Down

0 comments on commit de6064c

Please sign in to comment.