diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 5a25002382a5b..9a36894651650 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -282,6 +282,7 @@ UtxoData::iterator FindRandomFrom(const std::set &utxoSet) { BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) { SeedInsecureRand(/* deterministic */ true); + g_mock_deterministic_tests = true; bool spent_a_duplicate_coinbase = false; // A simple map to track what we expect the cache stack to represent. @@ -476,6 +477,8 @@ BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) // Verify coverage. BOOST_CHECK(spent_a_duplicate_coinbase); + + g_mock_deterministic_tests = false; } BOOST_AUTO_TEST_CASE(ccoins_serialization)