Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: bgworker parallel database #1204

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

NexVeridian
Copy link
Contributor

related #1121

after this and #1093 is merged, serial_test can be removed from ./Cargo.toml

before

/loco/ > cargo nextest run --all-features --test-threads 1 bgworker::pg
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s
────────────
 Nextest run ID 8f912c7d-d8e4-4cac-bc6e-e6bc0a891059 with nextest profile: default
    Starting 13 tests across 2 binaries (219 tests skipped)
        PASS [   0.061s] loco-rs bgworker::pg::tests::can_cancel_job_by_name
        PASS [   0.056s] loco-rs bgworker::pg::tests::can_clear
        PASS [   0.054s] loco-rs bgworker::pg::tests::can_clear_by_status
        PASS [   0.047s] loco-rs bgworker::pg::tests::can_clear_jobs_older_than
        PASS [   0.047s] loco-rs bgworker::pg::tests::can_clear_jobs_older_than_with_status
        PASS [   1.094s] loco-rs bgworker::pg::tests::can_complete_job_with_interval
        PASS [   0.067s] loco-rs bgworker::pg::tests::can_complete_job_without_interval
        PASS [   1.073s] loco-rs bgworker::pg::tests::can_dequeue
        PASS [   0.069s] loco-rs bgworker::pg::tests::can_enqueue
        PASS [   1.101s] loco-rs bgworker::pg::tests::can_fail_job
        PASS [   0.069s] loco-rs bgworker::pg::tests::can_get_jobs
        PASS [   0.048s] loco-rs bgworker::pg::tests::can_get_jobs_with_age
        PASS [   0.064s] loco-rs bgworker::pg::tests::can_initialize_database
────────────
     Summary [   3.855s] 13 tests run: 13 passed, 219 skipped

after

/loco/ > cargo nextest run --all-features bgworker::pg
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s
────────────
 Nextest run ID 54338aa3-eebf-4b38-bf82-91d8cfd393c8 with nextest profile: default
    Starting 13 tests across 2 binaries (219 tests skipped)
        PASS [   0.354s] loco-rs bgworker::pg::tests::can_get_jobs
        PASS [   0.374s] loco-rs bgworker::pg::tests::can_cancel_job_by_name
        PASS [   0.381s] loco-rs bgworker::pg::tests::can_complete_job_without_interval
        PASS [   0.381s] loco-rs bgworker::pg::tests::can_enqueue
        PASS [   0.382s] loco-rs bgworker::pg::tests::can_clear_jobs_older_than
        PASS [   0.379s] loco-rs bgworker::pg::tests::can_get_jobs_with_age
        PASS [   0.383s] loco-rs bgworker::pg::tests::can_clear
        PASS [   0.383s] loco-rs bgworker::pg::tests::can_clear_jobs_older_than_with_status
        PASS [   0.383s] loco-rs bgworker::pg::tests::can_initialize_database
        PASS [   0.387s] loco-rs bgworker::pg::tests::can_clear_by_status
        PASS [   1.319s] loco-rs bgworker::pg::tests::can_fail_job
        PASS [   1.323s] loco-rs bgworker::pg::tests::can_dequeue
        PASS [   1.324s] loco-rs bgworker::pg::tests::can_complete_job_with_interval
────────────
     Summary [   1.324s] 13 tests run: 13 passed, 219 skipped

@jondot jondot merged commit 0fb982c into loco-rs:master Jan 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants