fix workflow
This commit is contained in:
parent
12f6944e59
commit
b9e05213d9
2 changed files with 11 additions and 6 deletions
10
.github/workflows/rust.yml
vendored
10
.github/workflows/rust.yml
vendored
|
@ -64,11 +64,11 @@ jobs:
|
||||||
command: test
|
command: test
|
||||||
args: --verbose --all-features
|
args: --verbose --all-features
|
||||||
|
|
||||||
- name: Run dirty tests
|
- name: Run dirty tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --verbose --all-features --ignored
|
args: --verbose --all-features -- --ignored
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release x86_64-unknown-linux-gnu
|
name: Release x86_64-unknown-linux-gnu
|
||||||
|
|
|
@ -136,8 +136,10 @@ impl Drop for WorkerThread {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod job_pool_tests {
|
mod job_pool_tests {
|
||||||
|
use super::WorkerParams;
|
||||||
use super::WorkerPool;
|
use super::WorkerPool;
|
||||||
use crate::executor::Error;
|
use crate::executor::Error;
|
||||||
|
use crate::executor::RetentionMode;
|
||||||
use crate::executor::Runnable;
|
use crate::executor::Runnable;
|
||||||
use crate::postgres::Postgres;
|
use crate::postgres::Postgres;
|
||||||
use crate::postgres::Task;
|
use crate::postgres::Task;
|
||||||
|
@ -193,7 +195,10 @@ mod job_pool_tests {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
let postgres = Postgres::new();
|
let postgres = Postgres::new();
|
||||||
let job_pool = WorkerPool::new(2);
|
|
||||||
|
let mut worker_params = WorkerParams::new();
|
||||||
|
worker_params.set_retention_mode(RetentionMode::KeepAll);
|
||||||
|
let job_pool = WorkerPool::new_with_params(2, worker_params);
|
||||||
|
|
||||||
postgres.push_task(&MyJob::new(0)).unwrap();
|
postgres.push_task(&MyJob::new(0)).unwrap();
|
||||||
postgres.push_task(&MyJob::new(0)).unwrap();
|
postgres.push_task(&MyJob::new(0)).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue