rust-bitcoin / rust-bitcoin/rust-miniscript

Test failing when cargo test is executed

Open
#531 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.