From 2abd0aa46760e4bf75aaeeceed008ab322ae475e Mon Sep 17 00:00:00 2001 From: Mateus Alvim <19651215+MateusToyama@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:42:00 -0300 Subject: [PATCH] chore: changed test to consider job returned after update --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6379a6e..682eac8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,14 +180,14 @@ mod test { // Now poll_next should return this job to us let job1 = queue.poll_next(&[TestJob1::name()]).await.unwrap().unwrap(); - assert_eq!(job1.retries(), 0); + assert_eq!(job1.retries(), 1); // Fail the job job1.fail().await.unwrap(); // We should be able to get the same job again, but it should have increased retry count let job1 = queue.poll_next(&[TestJob1::name()]).await.unwrap().unwrap(); - assert_eq!(job1.retries(), 1); + assert_eq!(job1.retries(), 2); } #[tokio::test]