diff --git a/tests/test_read_only_trx.cpp b/tests/test_read_only_trx.cpp index db36eea1e9..e8f2574fd9 100644 --- a/tests/test_read_only_trx.cpp +++ b/tests/test_read_only_trx.cpp @@ -111,6 +111,10 @@ void test_trxs_common(std::vector& specific_args, bool test_disable plugin_promise.set_value( {app->find_plugin(), app->find_plugin()} ); app->exec(); } ); + fc::scoped_exit> on_except = [&](){ + if (app_thread.joinable()) + app_thread.join(); + }; auto[prod_plug, chain_plug] = plugin_fut.get();