Skip to content

Commit

Permalink
fix: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Aug 3, 2024
1 parent 1590434 commit 0d23b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/apalis-sql/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ macro_rules! sql_storage_tests {
.unwrap();

let (job_id, res) = storage.execute_next().await;
assert_eq!(
res,
Err("AbortError: Invalid character.".to_owned())
);
assert_eq!(res, Err("AbortError: Invalid character.".to_owned()));
apalis_core::sleep(Duration::from_secs(1)).await;
let job = storage.fetch_by_id(&job_id).await.unwrap().unwrap();
let ctx = job.get::<SqlContext>().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion packages/apalis-sql/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ mod tests {
assert!(ctx.done_at().is_none());
assert!(ctx.lock_by().is_some());
assert!(ctx.lock_at().is_some());
assert_eq!(*ctx.last_error(), Some("".to_string())); //TODO: Fix this
assert_eq!(*ctx.last_error(), None);
}

#[tokio::test]
Expand Down

0 comments on commit 0d23b18

Please sign in to comment.