Skip to content

Commit 8196963

Browse files
committed
fixup! Add tests for CWalletTx::nTimeSmart
Reset mock time after ComputeTimeSmart test.
1 parent 2ffffb3 commit 8196963

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/test/wallet_tests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,9 @@ BOOST_AUTO_TEST_CASE(ComputeTimeSmart)
489489
wtx = MakeTx(5, 600);
490490
wallet.AddToWallet(wtx);
491491
BOOST_CHECK_EQUAL(wallet.mapWallet[wtx.GetHash()].nTimeSmart, 300);
492+
493+
// Reset mock time for other tests.
494+
SetMockTime(0);
492495
}
493496

494497
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)