Skip to content

Commit

Permalink
Get rid of tests for removed behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Aug 21, 2024
1 parent ae24627 commit f65c3e8
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/wallet/test/createtransaction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,20 +663,6 @@ BOOST_FIXTURE_TEST_SUITE(createtransaction_tests, WalletTestingSetup)
std::vector<CRecipient> vRecipients = GetFakeRecipients({999 * COIN});


{
CWalletTx wtx;
CAmount nFeeRet = 0;
int nChangePosInOut = -1;
std::string strFailReason;

CReserveKey reservekey(pwalletMain);
pwalletMain->CreateTransaction(vRecipients, wtx, reservekey, nFeeRet, nChangePosInOut, strFailReason,
nullptr, true, 0, true, vTxouts);


ASSERT_FAILURE("Insufficient funds");
}

{
CCoinControl coinControl;
CWalletTx wtx;
Expand Down Expand Up @@ -816,22 +802,6 @@ BOOST_FIXTURE_TEST_SUITE(createtransaction_tests, WalletTestingSetup)
ASSERT_FAILURE("Insufficient funds");
}

{
CCoinControl coinControl;
CWalletTx wtx;
CAmount nFeeRet = 0;
int nChangePosInOut = -1;
std::string strFailReason;

coinControl.Select(vTxouts.at(1).GetOutpoint());
coinControl.fAllowOtherInputs = true;

CReserveKey reservekey(pwalletMain);
pwalletMain->CreateTransaction(vRecipients, wtx, reservekey, nFeeRet, nChangePosInOut, strFailReason,
&coinControl, true, 0, true, vTxouts);

ASSERT_FAILURE("Some coin control inputs could not be selected.");
}
}

BOOST_AUTO_TEST_CASE(coincontrol_input_count_limit) {
Expand Down

0 comments on commit f65c3e8

Please sign in to comment.