mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-11-22 00:01:00 +00:00
Make tests less flaky
This commit is contained in:
parent
4992bcf582
commit
a98c95ef13
1 changed files with 2 additions and 2 deletions
|
@ -321,7 +321,7 @@ mod tests {
|
|||
}
|
||||
|
||||
async fn pause() {
|
||||
pause_ms(100).await;
|
||||
pause_ms(200).await;
|
||||
}
|
||||
|
||||
async fn pause_ms(ms: u64) {
|
||||
|
@ -406,7 +406,7 @@ mod tests {
|
|||
let pool = &*test_pool().await;
|
||||
let (_runner, counter) = test_job_runner(&pool, move |_| async {}).await;
|
||||
|
||||
let backoff = 200;
|
||||
let backoff = 500;
|
||||
|
||||
assert_eq!(counter.load(Ordering::SeqCst), 0);
|
||||
JobBuilder::new("foo")
|
||||
|
|
Loading…
Reference in a new issue