Skip to content

Commit

Permalink
decrease limit for daemon_sanity_test
Browse files Browse the repository at this point in the history
  • Loading branch information
biryukovmaxim committed Sep 28, 2023
1 parent b8182c1 commit 5aa7068
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testing/integration/src/daemon_integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ use kaspa_rpc_core::api::rpc::RpcApi;
use kaspad::args::Args;

use crate::common::daemon::Daemon;
use kaspa_utils::fd_budget::get_limit;
use std::time::Duration;

#[tokio::test]
async fn daemon_sanity_test() {
let total_fd_limit = get_limit() / 2 - 128;
// let total_fd_limit = kaspa_utils::fd_budget::get_limit() / 2 - 128;
let total_fd_limit = 10;
let mut kaspad1 = Daemon::new_random(total_fd_limit);
let rpc_client1 = kaspad1.start().await;

Expand All @@ -30,7 +30,8 @@ async fn daemon_mining_test() {
kaspa_core::log::try_init_logger("INFO");

let args = Args { simnet: true, unsafe_rpc: true, enable_unsynced_mining: true, ..Default::default() };
let total_fd_limit = get_limit() / 2 - 128;
// let total_fd_limit = kaspa_utils::fd_budget::get_limit() / 2 - 128;
let total_fd_limit = 10;

let mut kaspad1 = Daemon::new_random_with_args(args.clone(), total_fd_limit);
let mut kaspad2 = Daemon::new_random_with_args(args, total_fd_limit);
Expand Down

0 comments on commit 5aa7068

Please sign in to comment.