Skip to content

Commit

Permalink
Allocate only one thread to tokio test runtime of all daemon integrat…
Browse files Browse the repository at this point in the history
…ion tests
  • Loading branch information
tiram88 committed Oct 13, 2023
1 parent 44e444c commit b559cce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/integration/src/daemon_integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use kaspad_lib::args::Args;
use crate::common::daemon::Daemon;
use std::{sync::Arc, time::Duration};

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn daemon_sanity_test() {
kaspa_core::log::try_init_logger("INFO");

Expand All @@ -27,7 +27,7 @@ async fn daemon_sanity_test() {
kaspad2.shutdown();
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn daemon_mining_test() {
kaspa_core::log::try_init_logger("INFO");

Expand Down Expand Up @@ -65,7 +65,7 @@ async fn daemon_mining_test() {
}

// The following test runtime parameters are required for a graceful shutdown of the gRPC server
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn daemon_cleaning_test() {
kaspa_core::log::try_init_logger("info,kaspa_grpc_core=trace,kaspa_grpc_server=trace,kaspa_grpc_client=trace,kaspa_core=trace");
let args = Args { devnet: true, ..Default::default() };
Expand Down

0 comments on commit b559cce

Please sign in to comment.