diff options
| author | MarcoFalke <[email protected]> | 2019-02-14 14:47:55 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-02-14 14:40:49 -0500 |
| commit | fab6b07c16768543bcb6a2ce3a76bd31762a1fab (patch) | |
| tree | d4735e9262b0e4d024602d1a6f72c5ddf9ba4958 /src/test/txindex_tests.cpp | |
| parent | Merge #15183: [Qt]: fixes m_assumed_blockchain_size variable value (diff) | |
| download | discoin-fab6b07c16768543bcb6a2ce3a76bd31762a1fab.tar.xz discoin-fab6b07c16768543bcb6a2ce3a76bd31762a1fab.zip | |
test: txindex: interrupt threadGroup before calling destructor
Diffstat (limited to 'src/test/txindex_tests.cpp')
| -rw-r--r-- | src/test/txindex_tests.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/txindex_tests.cpp b/src/test/txindex_tests.cpp index 0301901bf..d667c26c3 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() |