Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo test failing on macOS #85

Open
noib3 opened this issue Sep 4, 2022 · 1 comment
Open

cargo test failing on macOS #85

noib3 opened this issue Sep 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@noib3
Copy link
Contributor

noib3 commented Sep 4, 2022

  • 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.
@MaxFangX
Copy link

cargo test fails for me too, except only when I pass in --features 23_0. cargo test --features 22_0 passes just fine. Ran on bitcoind version 28.0 and rust 1.66.

$ RUST_BACKTRACE=0 ct --features 23_0                                                                                                          (0.28.0)
    Finished test [unoptimized + debuginfo] target(s) in 0.21s
     Running unittests src/lib.rs (target/debug/deps/bitcoind-2a7472b040ed2ee3)

running 8 tests
test test::test_local_ip ... ok
test test::test_bitcoind_rpcuser_and_rpcpassword ... ok
test test::test_bitcoind ... FAILED
test test::test_bitcoind_rpcauth ... FAILED
test test::test_p2p ... FAILED
test test::test_multi_p2p ... FAILED
test test::test_multi_wallet ... FAILED
test test::test_data_persistence ... FAILED

failures:

---- 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_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_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_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_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

---- 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


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.82s

error: test failed, to rerun pass `--lib`

@RCasatta RCasatta added the bug Something isn't working label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants