Skip to content

Commit

Permalink
chore: use 1 worker-thread in itests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Mar 21, 2024
1 parent 29c49d2 commit 9bfc790
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integrationtests/tests/tests_lnbitsmock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions integrationtests/tests/tests_lnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion integrationtests/tests/tests_nutshell_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
Expand Down

0 comments on commit 9bfc790

Please sign in to comment.