Skip to content

Commit

Permalink
fix: tests failing because of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Jul 16, 2024
1 parent e0c6e25 commit 3634805
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/apalis-redis/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ mod tests {
acknowledger: job_id.clone(),
result: Ok("Success".to_string()),
worker: worker_id.clone(),
attempts: Attempt::new_with_value(0)
})
.await
.expect("failed to acknowledge the job");
Expand Down
2 changes: 2 additions & 0 deletions packages/apalis-sql/src/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ mod tests {
use crate::context::State;

use super::*;
use apalis_core::task::attempt::Attempt;
use email_service::Email;
use futures::StreamExt;

Expand Down Expand Up @@ -646,6 +647,7 @@ mod tests {
acknowledger: job_id.clone(),
result: Ok("Success".to_string()),
worker: worker_id.clone(),
attempts: Attempt::new_with_value(0)
})
.await
.expect("failed to acknowledge the job");
Expand Down
3 changes: 3 additions & 0 deletions packages/apalis-sql/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ mod tests {
use crate::context::State;

use super::*;
use apalis_core::task::attempt::Attempt;
use email_service::Email;
use chrono::Utc;

Expand Down Expand Up @@ -729,6 +730,8 @@ mod tests {
acknowledger: job_id.clone(),
result: Ok("Success".to_string()),
worker: worker_id.clone(),
attempts: Attempt::new_with_value(0)

})
.await
.expect("failed to acknowledge the job");
Expand Down
3 changes: 3 additions & 0 deletions packages/apalis-sql/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ mod tests {
use crate::context::State;

use super::*;
use apalis_core::task::attempt::Attempt;
use email_service::Email;
use futures::StreamExt;
use chrono::Utc;
Expand Down Expand Up @@ -619,6 +620,8 @@ mod tests {
acknowledger: job_id.clone(),
result: Ok("Success".to_string()),
worker: worker_id.clone(),
attempts: Attempt::new_with_value(0)

})
.await
.expect("failed to acknowledge the job");
Expand Down

0 comments on commit 3634805

Please sign in to comment.