diff --git a/Cargo.toml b/Cargo.toml index be586f6e0..e8e1c8fe7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -197,7 +197,6 @@ rstest = "0.21.0" insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] } tree-fs = { version = "0.2.1" } reqwest = { version = "0.12.7" } -serial_test = "3.1.1" tower = { workspace = true, features = ["util"] } sqlx = { version = "0.8.2", default-features = false, features = [ "macros", diff --git a/src/bgworker/pg.rs b/src/bgworker/pg.rs index f2dd888a2..80ef74d21 100644 --- a/src/bgworker/pg.rs +++ b/src/bgworker/pg.rs @@ -489,8 +489,6 @@ pub async fn create_provider(qcfg: &PostgresQueueConfig) -> Result { )) } -#[cfg(all(test, feature = "integration_test"))] -use serial_test::serial; #[cfg(all(test, feature = "integration_test"))] mod tests { @@ -565,7 +563,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_initialize_database() { let pool = init().await; @@ -583,7 +580,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_enqueue() { let pool = init().await; @@ -617,7 +613,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_dequeue() { let pool = init().await; @@ -663,7 +658,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_complete_job_without_interval() { let pool = init().await; @@ -681,7 +675,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_complete_job_with_interval() { let pool = init().await; @@ -712,7 +705,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_fail_job() { let pool = init().await; @@ -742,7 +734,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_cancel_job_by_name() { let pool = init().await; @@ -771,7 +762,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_clear() { let pool = init().await; @@ -795,7 +785,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_clear_by_status() { let pool = init().await; @@ -841,7 +830,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_clear_jobs_older_than() { let pool = init().await; @@ -863,7 +851,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_clear_jobs_older_than_with_status() { let pool = init().await; @@ -893,7 +880,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_get_jobs() { let pool = init().await; @@ -925,7 +911,6 @@ mod tests { } #[tokio::test] - #[serial] async fn can_get_jobs_with_age() { let pool = init().await; diff --git a/tests/controller/middlewares.rs b/tests/controller/middlewares.rs index 8d31ea2be..aea5f8cda 100644 --- a/tests/controller/middlewares.rs +++ b/tests/controller/middlewares.rs @@ -4,7 +4,6 @@ use axum::http::StatusCode; use insta::assert_debug_snapshot; use loco_rs::{controller::middleware, prelude::*, tests_cfg}; use rstest::rstest; -use serial_test::serial; use crate::infra_cfg; @@ -21,7 +20,6 @@ macro_rules! configure_insta { #[case(true)] #[case(false)] #[tokio::test] -#[serial] async fn panic(#[case] enable: bool) { configure_insta!(); @@ -56,7 +54,6 @@ async fn panic(#[case] enable: bool) { #[case(true)] #[case(false)] #[tokio::test] -#[serial] async fn etag(#[case] enable: bool) { async fn action() -> Result { format::render().etag("loco-etag")?.text("content") @@ -90,7 +87,6 @@ async fn etag(#[case] enable: bool) { #[case(true, "remote: 51.50.51.50")] #[case(false, "--")] #[tokio::test] -#[serial] async fn remote_ip(#[case] enable: bool, #[case] expected: &str) { #[allow(clippy::items_after_statements)] async fn action(remote_ip: RemoteIP) -> Result { @@ -127,7 +123,6 @@ async fn remote_ip(#[case] enable: bool, #[case] expected: &str) { #[case(true)] #[case(false)] #[tokio::test] -#[serial] async fn timeout(#[case] enable: bool) { #[allow(clippy::items_after_statements)] async fn action() -> Result { @@ -164,7 +159,6 @@ async fn timeout(#[case] enable: bool) { #[case(true, "with_max_age", None, None, Some(20))] #[case(false, "disabled", None, None, None)] #[tokio::test] -#[serial] async fn cors( #[case] enable: bool, #[case] test_name: &str, @@ -230,7 +224,6 @@ async fn cors( #[case(true)] #[case(false)] #[tokio::test] -#[serial] async fn limit_payload(#[case] enable: bool) { configure_insta!(); @@ -264,7 +257,6 @@ async fn limit_payload(#[case] enable: bool) { } #[tokio::test] -#[serial] async fn static_assets() { configure_insta!(); @@ -333,7 +325,6 @@ async fn static_assets() { "default-src 'self' https".to_string(), )])))] #[tokio::test] -#[serial] async fn secure_headers( #[case] preset: Option, #[case] overrides: Option>, @@ -387,7 +378,6 @@ async fn secure_headers( #[case(None, true, None)] #[case(None, false, Some("text fallback response".to_string()))] #[tokio::test] -#[serial] async fn fallback( #[case] code: Option, #[case] file: bool, @@ -461,7 +451,6 @@ async fn fallback( #[case(None)] #[case(Some("custom".to_string()))] #[tokio::test] -#[serial] async fn powered_by_header(#[case] ident: Option) { configure_insta!();