mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-06-13 02:29:22 +00:00
Fix tests
This commit is contained in:
parent
34bfe624d9
commit
0afcb05d62
|
@ -317,7 +317,7 @@ mod tests {
|
|||
async fn test_job_runner<F: Future + Send + 'static>(
|
||||
pool: &Pool<Postgres>,
|
||||
f: impl (Fn(CurrentJob) -> F) + Send + Sync + 'static,
|
||||
) -> (OwnedHandle, Arc<AtomicUsize>)
|
||||
) -> (JobRunnerHandle, Arc<AtomicUsize>)
|
||||
where
|
||||
F::Output: Send + 'static,
|
||||
{
|
||||
|
@ -365,7 +365,7 @@ mod tests {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
async fn named_job_runner(pool: &Pool<Postgres>) -> OwnedHandle {
|
||||
async fn named_job_runner(pool: &Pool<Postgres>) -> JobRunnerHandle {
|
||||
let mut registry = JobRegistry::new(&[example_job1, example_job2, example_job_with_ctx]);
|
||||
registry.set_context(42).set_context("Hello, world!");
|
||||
registry.runner(pool).run().await.unwrap()
|
||||
|
|
Loading…
Reference in a new issue