diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-28 14:01:37 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-12 10:47:35 +0200 |
commit | faad68fcd440e77e61a5a1560471417dd984e390 (patch) | |
tree | 0e6783601ce151ae81ff78ae7fe2a32768862d9e /src/test/txindex_tests.cpp | |
parent | 2e30e328a7a46e0405664fd0cb31d971171f71d1 (diff) |
index: Avoid async shutdown on init error
Diffstat (limited to 'src/test/txindex_tests.cpp')
-rw-r--r-- | src/test/txindex_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/txindex_tests.cpp b/src/test/txindex_tests.cpp index 5fc172ee86..082655d811 100644 --- a/src/test/txindex_tests.cpp +++ b/src/test/txindex_tests.cpp @@ -27,7 +27,7 @@ BOOST_FIXTURE_TEST_CASE(txindex_initial_sync, TestChain100Setup) // BlockUntilSyncedToCurrentChain should return false before txindex is started. BOOST_CHECK(!txindex.BlockUntilSyncedToCurrentChain()); - txindex.Start(); + BOOST_REQUIRE(txindex.Start()); // Allow tx index to catch up with the block index. constexpr int64_t timeout_ms = 10 * 1000; |