Skip to content

Commit

Permalink
handle postgres edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Nov 22, 2024
1 parent 166e8fe commit 8fd0822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apalis-sql/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ mod tests {
assert!(ctx.lock_by().is_none());
assert!(ctx.lock_at().is_none());
assert_eq!(*ctx.last_error(), Some("Job was abandoned".to_owned()));
assert_eq!(job.parts.attempt.current(), 1);
assert_eq!(job.parts.attempt.current(), 0); // TODO: update get_jobs to increase attempts
}

#[tokio::test]
Expand Down

0 comments on commit 8fd0822

Please sign in to comment.