Skip to content

cargo test failing on macOS #85

@noib3

Description

@noib3
  • macOS version: Monterey 12.4
  • Rust version: tried both 1.56 and 1.63

cargo test is failing on macOS with the following error message:

Error msg
running 8 tests
test test::test_local_ip ... ok
test test::test_bitcoind_rpcuser_and_rpcpassword ... ok
test test::test_bitcoind_rpcauth ... FAILED
test test::test_multi_p2p ... FAILED
test test::test_p2p ... FAILED
test test::test_bitcoind ... FAILED
test test::test_data_persistence ... FAILED
test test::test_multi_wallet ... FAILED
 
failures:
 
---- test::test_bitcoind_rpcauth stdout ----
thread 'test::test_bitcoind_rpcauth' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -4, message: "Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?\n", data: None }))', src/lib.rs:683:56
 
---- test::test_multi_p2p stdout ----
thread 'test::test_multi_p2p' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -4, message: "Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?\n", data: None }))', src/lib.rs:573:75
 
---- test::test_p2p stdout ----
thread 'test::test_p2p' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -4, message: "Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?\n", data: None }))', src/lib.rs:524:57
 
---- test::test_bitcoind stdout ----
thread 'test::test_bitcoind' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -4, message: "Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?\n", data: None }))', src/lib.rs:492:43
 
---- test::test_data_persistence stdout ----
thread 'test::test_data_persistence' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -4, message: "Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?\n", data: None }))', src/lib.rs:544:72
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 
---- test::test_multi_wallet stdout ----
thread 'test::test_multi_wallet' panicked at 'called `Result::unwrap()` on an `Err` value: JsonRpc(Rpc(RpcError { code: -4, message: "Wallet file verification failed. SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Bitcoin Core?\n", data: None }))', src/lib.rs:601:43
 
 
failures:
    test::test_bitcoind
    test::test_bitcoind_rpcauth
    test::test_data_persistence
    test::test_multi_p2p
    test::test_multi_wallet
    test::test_p2p
 
test result: FAILED. 2 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 17.18s

the output is the same if the tests are run with:

  • cargo test --features 22_0;
  • cargo test with the BITCOIND_EXEC env variable pointing to bitcoind 22.0;
  • cargo test with the BITCOIND_EXEC env variable pointing to bitcoind 23.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions