fuzz: Add SetMockTime() to necessary targets

This commit is contained in:
marcofleon
2024-12-18 14:44:23 +00:00
parent bb57017b29
commit ff21870e20
14 changed files with 42 additions and 5 deletions

View File

@@ -199,7 +199,9 @@ BasicTestingSetup::~BasicTestingSetup()
{
m_node.ecc_context.reset();
m_node.kernel.reset();
SetMockTime(0s); // Reset mocktime for following tests
if constexpr (!G_FUZZING) {
SetMockTime(0s); // Reset mocktime for following tests
}
LogInstance().DisconnectTestLogger();
if (m_has_custom_datadir) {
// Only remove the lock file, preserve the data directory.