test: txindex: interrupt threadGroup before calling destructor

This commit is contained in:
MarcoFalke 2019-02-14 14:47:55 -05:00
parent 38989ab03f
commit fab6b07c16
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -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()