Skip to content

Commit

Permalink
tests: blindly port in src/wallet/test/wallet_tests.cpp the ITCOIN_SP…
Browse files Browse the repository at this point in the history
…ECIFIC modifications that were in src/wallet/test/availablecoins_tests.cpp

src/wallet/test/availablecoins_tests.cpp was present in v24.1, but was removed
in v25.1, and its content integrated in wallet_tests.cpp. Let's bring there our
ITCOIN_SPECIFIC modifications. We lost them when doing the textual merge at the
start of this series.
  • Loading branch information
muxator committed Oct 12, 2023
1 parent 1ec4957 commit 0b7b35a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wallet/test/wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,9 @@ BOOST_FIXTURE_TEST_CASE(BasicOutputTypesTest, ListCoinsTest)
std::map<OutputType, size_t> expected_coins_sizes;
for (const auto& out_type : OUTPUT_TYPES) { expected_coins_sizes[out_type] = 0U; }

// Verify our wallet has one usable coinbase UTXO before starting
// This UTXO is a P2PK, so it should show up in the Other bucket
expected_coins_sizes[OutputType::UNKNOWN] = 1U;
// Verify our wallet has 100 (ITCOIN_SPECIFIC: it was one) usable coinbase UTXO before starting
// These UTXOs are P2PK, so they should show up in the Other bucket (ITCOIN_SPECIFIC: it was "This UTXO is a P2PK, so it"...)
expected_coins_sizes[OutputType::UNKNOWN] = 100U; // ITCOIN_SPECIFIC: it was 1.
CoinsResult available_coins = WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet));
BOOST_CHECK_EQUAL(available_coins.Size(), expected_coins_sizes[OutputType::UNKNOWN]);
BOOST_CHECK_EQUAL(available_coins.coins[OutputType::UNKNOWN].size(), expected_coins_sizes[OutputType::UNKNOWN]);
Expand Down

0 comments on commit 0b7b35a

Please sign in to comment.