]> Untitled Git - bdk-cli/commitdiff
fix(Justfile): fix test-threads to max 2
authorVihiga Tyonum <withtvpeter@gmail.com>
Tue, 7 Jul 2026 19:54:21 +0000 (20:54 +0100)
committerVihiga Tyonum <withtvpeter@gmail.com>
Wed, 8 Jul 2026 21:49:32 +0000 (22:49 +0100)
- 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.

Justfile

index 163efcaa1c87e2031db0ba48c7235c7f8aadf406..df04921ef261ffccc6802c72641d6f4fb2f0c135 100644 (file)
--- a/Justfile
+++ b/Justfile
@@ -28,7 +28,7 @@ test:
 pre-push:
     cargo test --features default
     cargo test --no-default-features
-    cargo test --all-features
+    cargo test --all-features -- --test-threads=2
     cargo clippy --no-default-features --all-targets -- -D warnings
     cargo clippy --all-features --all-targets -- -D warnings
     cargo fmt --all -- --check