rust-bitcoin / rust-bitcoin/rust-miniscript
Test failing when cargo test is executed
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 426
- Forks
- 200
- Avg merge
- 7d 17h
- Merged PRs (30d)
- 8
Description
when cargo test is run 82 tests are passed last two test failed namely test_setup and tests_from_cpp
the output of the terminal is
test result: ok. 82 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.85s
Running tests/test_cpp.rs (target/debug/deps/test_cpp-ce39f0fc6c9490f5)
running 2 tests
test test_setup ... FAILED
test tests_from_cpp ... FAILED
failures:
---- test_setup stdout ----
thread 'test_setup' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Transport(SocketError(Os { code: 11, kind:
WouldBlock, message: "Resource temporarily unavailable" })))', tests/setup/mod.rs:16:51
---- tests_from_cpp stdout ----
thread 'tests_from_cpp' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Transport(SocketError(Os { code: 11,
kind: WouldBlock, message: "Resource temporarily unavailable" })))', tests/setup/mod.rs:16:51
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
test_setup
tests_from_cpp
test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 23.00s
error: test failed, to rerun pass '--test test_cpp'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run cargo test and focus on tests/test_cpp.rs and tests/setup/mod.rs:16, where both failures unwrap the same JSON-RPC transport error. Compare the setup used by test_setup and tests_from_cpp, then verify that cargo test --test test_cpp completes with both tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100