Skip to content

Commit

Permalink
chore: changed test to consider job returned after update
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusToyama committed Mar 26, 2024
1 parent d7682b9 commit 2abd0aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2abd0aa

Please sign in to comment.