summaryrefslogtreecommitdiff
path: root/server/tests/integration_test.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-06-18 00:19:30 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-06-19 00:21:27 +0200
commitdfd2f78b6ebf0f1a7f3d753f2312d5cbc1a08589 (patch)
treee51698533b35103d7dac530f3cef39cfa922c5ce /server/tests/integration_test.rs
parenta68405fecc20ac533e827835e3c0d823b4d77758 (diff)
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.
Diffstat (limited to 'server/tests/integration_test.rs')
-rw-r--r--server/tests/integration_test.rs3
1 files changed, 3 insertions, 0 deletions
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")