From fab6b07c16768543bcb6a2ce3a76bd31762a1fab Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 14 Feb 2019 14:47:55 -0500 Subject: test: txindex: interrupt threadGroup before calling destructor --- src/test/txindex_tests.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/test/txindex_tests.cpp') diff --git a/src/test/txindex_tests.cpp b/src/test/txindex_tests.cpp index 0301901bf0..d667c26c3c 100644 --- a/src/test/txindex_tests.cpp +++ b/src/test/txindex_tests.cpp @@ -69,7 +69,13 @@ BOOST_FIXTURE_TEST_CASE(txindex_initial_sync, TestChain100Setup) } } - txindex.Stop(); // Stop thread before calling destructor + // shutdown sequence (c.f. Shutdown() in init.cpp) + txindex.Stop(); + + threadGroup.interrupt_all(); + threadGroup.join_all(); + + // Rest of shutdown sequence and destructors happen in ~TestingSetup() } BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3