Skip to content

Commit

Permalink
drop serial_test
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Dec 18, 2024
1 parent e9224e1 commit 2a0247b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 0 additions & 15 deletions src/bgworker/pg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,6 @@ pub async fn create_provider(qcfg: &PostgresQueueConfig) -> Result<Queue> {
))
}

#[cfg(all(test, feature = "integration_test"))]
use serial_test::serial;
#[cfg(all(test, feature = "integration_test"))]
mod tests {

Expand Down Expand Up @@ -565,7 +563,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_initialize_database() {
let pool = init().await;

Expand All @@ -583,7 +580,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_enqueue() {
let pool = init().await;

Expand Down Expand Up @@ -617,7 +613,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_dequeue() {
let pool = init().await;

Expand Down Expand Up @@ -663,7 +658,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_complete_job_without_interval() {
let pool = init().await;

Expand All @@ -681,7 +675,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_complete_job_with_interval() {
let pool = init().await;

Expand Down Expand Up @@ -712,7 +705,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_fail_job() {
let pool = init().await;

Expand Down Expand Up @@ -742,7 +734,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_cancel_job_by_name() {
let pool = init().await;

Expand Down Expand Up @@ -771,7 +762,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_clear() {
let pool = init().await;

Expand All @@ -795,7 +785,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_clear_by_status() {
let pool = init().await;

Expand Down Expand Up @@ -841,7 +830,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_clear_jobs_older_than() {
let pool = init().await;

Expand All @@ -863,7 +851,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_clear_jobs_older_than_with_status() {
let pool = init().await;

Expand Down Expand Up @@ -893,7 +880,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_get_jobs() {
let pool = init().await;

Expand Down Expand Up @@ -925,7 +911,6 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn can_get_jobs_with_age() {
let pool = init().await;

Expand Down
11 changes: 0 additions & 11 deletions tests/controller/middlewares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -21,7 +20,6 @@ macro_rules! configure_insta {
#[case(true)]
#[case(false)]
#[tokio::test]
#[serial]
async fn panic(#[case] enable: bool) {
configure_insta!();

Expand Down Expand Up @@ -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<Response> {
format::render().etag("loco-etag")?.text("content")
Expand Down Expand Up @@ -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<Response> {
Expand Down Expand Up @@ -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<Response> {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -230,7 +224,6 @@ async fn cors(
#[case(true)]
#[case(false)]
#[tokio::test]
#[serial]
async fn limit_payload(#[case] enable: bool) {
configure_insta!();

Expand Down Expand Up @@ -264,7 +257,6 @@ async fn limit_payload(#[case] enable: bool) {
}

#[tokio::test]
#[serial]
async fn static_assets() {
configure_insta!();

Expand Down Expand Up @@ -333,7 +325,6 @@ async fn static_assets() {
"default-src 'self' https".to_string(),
)])))]
#[tokio::test]
#[serial]
async fn secure_headers(
#[case] preset: Option<String>,
#[case] overrides: Option<BTreeMap<String, String>>,
Expand Down Expand Up @@ -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<StatusCode>,
#[case] file: bool,
Expand Down Expand Up @@ -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<String>) {
configure_insta!();

Expand Down

0 comments on commit 2a0247b

Please sign in to comment.