From 9bfc7904877ffa64a2b93184edd09131ec916704 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Thu, 21 Mar 2024 14:27:42 +0100 Subject: [PATCH] chore: use 1 worker-thread in itests --- integrationtests/tests/tests_lnbitsmock.rs | 2 +- integrationtests/tests/tests_lnd.rs | 4 ++-- integrationtests/tests/tests_nutshell_compatibility.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integrationtests/tests/tests_lnbitsmock.rs b/integrationtests/tests/tests_lnbitsmock.rs index 2c9bed49..78c7c369 100644 --- a/integrationtests/tests/tests_lnbitsmock.rs +++ b/integrationtests/tests/tests_lnbitsmock.rs @@ -13,7 +13,7 @@ use testcontainers::{clients, RunnableImage}; use testcontainers_modules::postgres::Postgres; use tokio::time::{sleep_until, Instant}; -#[tokio::test(flavor = "multi_thread")] +#[tokio::test(flavor = "multi_thread", worker_threads = 1)] pub async fn test_bolt11_lnbitsmock() -> anyhow::Result<()> { // create postgres container that will be destroyed after the test is done let docker = clients::Cli::default(); diff --git a/integrationtests/tests/tests_lnd.rs b/integrationtests/tests/tests_lnd.rs index 0c7f3b99..669e00e9 100644 --- a/integrationtests/tests/tests_lnd.rs +++ b/integrationtests/tests/tests_lnd.rs @@ -23,7 +23,7 @@ use testcontainers::{clients, RunnableImage}; use testcontainers_modules::postgres::Postgres; use tokio::time::{sleep_until, Instant}; -#[tokio::test(flavor = "multi_thread")] +#[tokio::test(flavor = "multi_thread", worker_threads = 1)] async fn test_btc_onchain_mint_melt() -> anyhow::Result<()> { // create postgres container that will be destroyed after the test is done let docker = clients::Cli::default(); @@ -118,7 +118,7 @@ async fn test_btc_onchain_mint_melt() -> anyhow::Result<()> { Ok(()) } -#[tokio::test(flavor = "multi_thread")] +#[tokio::test(flavor = "multi_thread", worker_threads = 1)] async fn test_bolt11_mint() -> anyhow::Result<()> { // create postgres container that will be destroyed after the test is done let docker = clients::Cli::default(); diff --git a/integrationtests/tests/tests_nutshell_compatibility.rs b/integrationtests/tests/tests_nutshell_compatibility.rs index 3054aa41..2cb2c920 100644 --- a/integrationtests/tests/tests_nutshell_compatibility.rs +++ b/integrationtests/tests/tests_nutshell_compatibility.rs @@ -10,7 +10,7 @@ use reqwest::Url; use tokio::time::{sleep_until, Instant}; -#[tokio::test(flavor = "multi_thread")] +#[tokio::test(flavor = "multi_thread", worker_threads = 1)] pub async fn test_nutshell_compatibility() -> anyhow::Result<()> { let client = CrossPlatformHttpClient::new(); let mint_url = Url::parse("http://127.0.0.1:2228")?;