aboutsummaryrefslogtreecommitdiff
path: root/src/test/coins_tests.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2019-06-17 19:13:30 +0200
committerpracticalswift <[email protected]>2019-06-17 19:13:30 +0200
commitf8995807e4f08fd0266899e3e227903f06da6ab1 (patch)
tree0ffa8235381f9eac272116d3f16a79132a1145f1 /src/test/coins_tests.cpp
parentMerge #16210: rpc: add 2nd arg to signrawtransactionwithkey examples (diff)
downloaddiscoin-f8995807e4f08fd0266899e3e227903f06da6ab1.tar.xz
discoin-f8995807e4f08fd0266899e3e227903f06da6ab1.zip
tests: Make coins_tests/updatecoins_simulation_test deterministic
Diffstat (limited to 'src/test/coins_tests.cpp')
-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 d03defb33..2c42596ed 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)