diff --git a/src/test/validation_chainstatemanager_tests.cpp b/src/test/validation_chainstatemanager_tests.cpp index 8f46d54621..99860961a2 100644 --- a/src/test/validation_chainstatemanager_tests.cpp +++ b/src/test/validation_chainstatemanager_tests.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -659,8 +660,11 @@ BOOST_FIXTURE_TEST_CASE(chainstatemanager_snapshot_completion_hash_mismatch, Sna fs::path snapshot_chainstate_dir = gArgs.GetDataDirNet() / "chainstate_snapshot"; BOOST_CHECK(fs::exists(snapshot_chainstate_dir)); - res = WITH_LOCK(::cs_main, return chainman.MaybeCompleteSnapshotValidation()); - BOOST_CHECK_EQUAL(res, SnapshotCompletionResult::HASH_MISMATCH); + { + ASSERT_DEBUG_LOG("failed to validate the -assumeutxo snapshot state"); + res = WITH_LOCK(::cs_main, return chainman.MaybeCompleteSnapshotValidation()); + BOOST_CHECK_EQUAL(res, SnapshotCompletionResult::HASH_MISMATCH); + } auto all_chainstates = chainman.GetAll(); BOOST_CHECK_EQUAL(all_chainstates.size(), 1);