aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2019-06-17 19:13:30 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2019-06-17 19:13:30 +0200
commitf8995807e4f08fd0266899e3e227903f06da6ab1 (patch)
tree0ffa8235381f9eac272116d3f16a79132a1145f1
parent91958d66cbbf2bbd07925b7dcc65bde9ec7f7005 (diff)
tests: Make coins_tests/updatecoins_simulation_test deterministic
-rw-r--r--src/test/coins_tests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp
index d03defb335..2c42596edc 100644
--- a/src/test/coins_tests.cpp
+++ b/src/test/coins_tests.cpp
@@ -278,6 +278,7 @@ UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &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.
@@ -472,6 +473,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)