From e5ddec76f7315f49a71cdb3d6fb12231c58887c9 Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Wed, 21 Oct 2020 15:52:51 +1100 Subject: [PATCH] Increase Rust minimum stack size in CI --- .github/workflows/ci.yml | 2 ++ xmr-btc/tests/e2e.rs | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 531def83..739fe386 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,4 +76,6 @@ jobs: - name: Cargo test run: cargo test --workspace --all-features env: + # To avoid stack overflows + RUST_MIN_STACK: 100000000 MONERO_ADDITIONAL_SLEEP_PERIOD: 60000 diff --git a/xmr-btc/tests/e2e.rs b/xmr-btc/tests/e2e.rs index fb2ddeec..41423f5d 100644 --- a/xmr-btc/tests/e2e.rs +++ b/xmr-btc/tests/e2e.rs @@ -142,6 +142,11 @@ pub async fn init_test<'a>( } mod tests { + // NOTE: For some reason running these tests overflows the stack. In order to + // mitigate this run them with: + // + // RUST_MIN_STACK=100000000 cargo test + use crate::{ harness, harness::node::{run_alice_until, run_bob_until},