-
Notifications
You must be signed in to change notification settings - Fork 37.7k
test: add coverage for -rpcwallet cli option #18724
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
Conversation
0e64fb6
to
5835c4a
Compare
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
ACK 5835c4a Passes for me locally. I remember doing a lot of this manually for your PR Review Club session a few weeks ago. Thanks for adding all this as a test! |
5835c4a
to
442d025
Compare
Thanks @robot-visions for reviewing. I replaced the timeout magic value of 60 with |
and add -getinfo coverage with multiple wallets loaded.
442d025
to
2495110
Compare
ACK 2495110 Tests still pass. Thanks for updating! |
Thanks for writing tests |
2495110 test: add coverage for -rpcwallet cli option (Jon Atack) Pull request description: The bitcoin-cli `-rpcwallet=` option is an essential RPC/CLI option when more than one wallet is loaded (see `bitcoin-cli -help | grep -A5 rpcwallet` or `src/bitcoin-cli.cpp::L61`) and it currently has no test coverage. It is not only used by users, but also by the test framework and ~10 test files via `get_wallet_rpc()`. This PR adds coverage, while simultaneously improving the `-getinfo` coverage when multiple wallets are loaded. This is similar to the test coverage that would be added in bitcoin#18594. ACKs for top commit: robot-visions: ACK 2495110 Tree-SHA512: caaa8b99fb8fa481ab2c6b2a287ed29720bb4553c3f66657462c44fa2990acaaf36cabeaaf81408678e5fdce4e105d729dd94b5ed8588dd1a6f2cb03fc25acf3
and add -getinfo coverage with multiple wallets loaded. Github-Pull: bitcoin#18724 Rebased-From: 2495110
and add -getinfo coverage with multiple wallets loaded. Github-Pull: bitcoin#18724 Rebased-From: 2495110
and add -getinfo coverage with multiple wallets loaded. Github-Pull: bitcoin#18724 Rebased-From: 2495110
Summary: and add -getinfo coverage with multiple wallets loaded. > The bitcoin-cli -rpcwallet= option is an essential RPC/CLI option when more than one wallet is loaded (see bitcoin-cli -help | grep -A5 rpcwallet or src/bitcoin-cli.cpp::L61) and it currently has no test coverage. > > It is not only used by users, but also by the test framework and ~10 test files via get_wallet_rpc(). > > This PR adds coverage, while simultaneously improving the -getinfo coverage when multiple wallets are loaded. This is a backport of Core [[bitcoin/bitcoin#18724 | PR18724]] Test Plan: `./test/functional/test_runner.py interface_bit*` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D8975
The bitcoin-cli
-rpcwallet=
option is an essential RPC/CLI option when more than one wallet is loaded (seebitcoin-cli -help | grep -A5 rpcwallet
orsrc/bitcoin-cli.cpp::L61
) and it currently has no test coverage.It is not only used by users, but also by the test framework and ~10 test files via
get_wallet_rpc()
.This PR adds coverage, while simultaneously improving the
-getinfo
coverage when multiple wallets are loaded. This is similar to the test coverage that would be added in #18594.