Skip to content

Commit

Permalink
Add sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoniosBarotsis committed Dec 13, 2024
1 parent d4c793f commit dc6afe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/emails.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ mod test {

// Cancel
let _cancelled = resend.emails.cancel(&email.id).await?;
std::thread::sleep(std::time::Duration::from_secs(1));

// Get again, make sure it was cancelled
let email = resend.emails.get(&email.id).await?;
Expand Down

0 comments on commit dc6afe4

Please sign in to comment.