Skip to content

Commit 84d391c

Browse files
committed
fix(Justfile): fix test-threads to max 2
- The problem: When running `cargo test --all- features`, the backends (electrum, rpc, esplora from TestEnv) run in parallel at the number of cpus available and exhaust the processes/ports available, thereby resulting in os error 35. This fix limits the number of threads that are available for the tests to run in parallel.
1 parent ae2d934 commit 84d391c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test:
2828
pre-push:
2929
cargo test --features default
3030
cargo test --no-default-features
31-
cargo test --all-features
31+
cargo test --all-features -- --test-threads=2
3232
cargo clippy --no-default-features --all-targets -- -D warnings
3333
cargo clippy --all-features --all-targets -- -D warnings
3434
cargo fmt --all -- --check

0 commit comments

Comments
 (0)