diff --git a/tests/test_read_only_trx.cpp b/tests/test_read_only_trx.cpp index 27a6c6be1e..1495476779 100644 --- a/tests/test_read_only_trx.cpp +++ b/tests/test_read_only_trx.cpp @@ -118,6 +118,7 @@ void test_trxs_common(std::vector& specific_args, bool test_disable BOOST_CHECK(!"app threw exception see logged error"); } ); fc::scoped_exit> on_except = [&](){ + app->quit(); if (app_thread.joinable()) app_thread.join(); }; @@ -166,8 +167,6 @@ void test_trxs_common(std::vector& specific_args, bool test_disable while ( (next_calls < num_pushes || num_get_account_calls < num_pushes) && fc::time_point::now() < hard_deadline ){ std::this_thread::sleep_for( 100ms ); } - - app->quit(); } BOOST_CHECK_EQUAL( trace_with_except, 0u ); // should not have any traces with except in it