From dfd2f78b6ebf0f1a7f3d753f2312d5cbc1a08589 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 18 Jun 2025 00:19:30 +0200 Subject: Make integration tests run serially Tricky to setup the docker compose env to be able to run multiple so simple fix is run the tests sharing the same docker compose setup in serial. --- server/tests/integration_test.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/tests/integration_test.rs') diff --git a/server/tests/integration_test.rs b/server/tests/integration_test.rs index 6becf61..40804df 100644 --- a/server/tests/integration_test.rs +++ b/server/tests/integration_test.rs @@ -1,4 +1,5 @@ use pretty_assertions::assert_eq; +use serial_test::serial; use std::path::PathBuf; use std::thread::sleep; use std::time::Duration; @@ -54,6 +55,7 @@ cTxwtk7kqwmwia2jBCSw=="; #[test_context(common::DockerComposeContext)] #[tokio::test] +#[serial(docker)] async fn test_sanity(ctx: &mut common::DockerComposeContext) { let mut client1 = common::create_client().expect("client1"); common::login(ctx, &mut client1, "user01", "password1") @@ -134,6 +136,7 @@ async fn test_sanity(ctx: &mut common::DockerComposeContext) { #[test_context(common::DockerComposeContext)] #[tokio::test] +#[serial(docker)] async fn test_translation_review_create(ctx: &mut common::DockerComposeContext) { let mut client1 = common::create_client().expect("client1"); common::login(ctx, &mut client1, "user01", "password1") -- cgit v1.2.3-70-g09d2