Skip to content

Commit

Permalink
tests: Make tests updatecoins_simulation_test and knapsack_solver_tes…
Browse files Browse the repository at this point in the history
…t deterministic
  • Loading branch information
practicalswift committed Feb 2, 2019
1 parent b3a7153 commit f72aea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/coins_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &utxoSet) {
// has the expected effect (the other duplicate is overwritten at all cache levels)
BOOST_AUTO_TEST_CASE(updatecoins_simulation_test)
{
SeedInsecureRand(true);

bool spent_a_duplicate_coinbase = false;
// A simple map to track what we expect the cache stack to represent.
std::map<COutPoint, Coin> result;
Expand Down
2 changes: 2 additions & 0 deletions src/wallet/test/coinselector_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ BOOST_AUTO_TEST_CASE(bnb_search_test)

BOOST_AUTO_TEST_CASE(knapsack_solver_test)
{
SeedInsecureRand(true);

CoinSet setCoinsRet, setCoinsRet2;
CAmount nValueRet;
bool bnb_used;
Expand Down

0 comments on commit f72aea2

Please sign in to comment.