From 3b2227ec9dbea7209bf63d7ff2f0a15b7422c1d8 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 21 Jul 2023 10:39:47 -0500 Subject: [PATCH] GH-1435 Make sure app_thread of test is always joined to avoid terminate --- tests/test_read_only_trx.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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();