From fa40d6a1c47ac7f3dc6c11a2e6642cfef95422c1 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 14 Apr 2021 10:30:01 +0200 Subject: test: Reset mocktime in the common setup Doing it there will reduce code bloat and also ensure no test can "forget" to reset it --- src/wallet/test/wallet_tests.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/wallet/test/wallet_tests.cpp') diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index e201cc1eb4..011d59ecaf 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -295,8 +295,6 @@ BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup) BOOST_CHECK_EQUAL(found, expected); } } - - SetMockTime(0); } // Check that GetImmatureCredit() returns a newly calculated value instead of @@ -377,9 +375,6 @@ BOOST_AUTO_TEST_CASE(ComputeTimeSmart) // If there are future entries, new transaction should use time of the // newest entry that is no more than 300 seconds ahead of the clock time. BOOST_CHECK_EQUAL(AddTx(*m_node.chainman, m_wallet, 5, 50, 600), 300); - - // Reset mock time for other tests. - SetMockTime(0); } BOOST_AUTO_TEST_CASE(LoadReceiveRequests) -- cgit v1.2.3