From 0b695731296734480512363b5a26e80048318840 Mon Sep 17 00:00:00 2001 From: rishflab Date: Mon, 25 Jan 2021 12:54:33 +1100 Subject: [PATCH] Run tests on one thread, increase T1 --- .github/workflows/ci.yml | 2 +- swap/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c25de3f0..a30c447c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: - name: Cargo test if: (!matrix.skip_tests) - run: cargo +nightly test --workspace --all-features -- -Z unstable-options --report-time + run: cargo +nightly test --workspace --all -- --test-threads=1 -Z unstable-options --report-time env: MONERO_ADDITIONAL_SLEEP_PERIOD: 60000 RUST_MIN_STACK: 16777216 # 16 MB. Default is 8MB. This is fine as in tests we start 2 programs: Alice and Bob. diff --git a/swap/src/config.rs b/swap/src/config.rs index 8ef318c2..d7fd1a14 100644 --- a/swap/src/config.rs +++ b/swap/src/config.rs @@ -104,7 +104,7 @@ mod regtest { pub static MONERO_FINALITY_CONFIRMATIONS: u32 = 1; - pub static BITCOIN_CANCEL_TIMELOCK: Timelock = Timelock::new(50); + pub static BITCOIN_CANCEL_TIMELOCK: Timelock = Timelock::new(100); pub static BITCOIN_PUNISH_TIMELOCK: Timelock = Timelock::new(50); }