test: txindex: interrupt threadGroup before calling destructor
This commit is contained in:
parent
38989ab03f
commit
fab6b07c16
1 changed files with 7 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue