diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-27 10:30:16 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-13 19:58:11 -0400 |
commit | fa5ceb25fce2200edf6b8ebfa6d4f01ed6774b95 (patch) | |
tree | b1adfde10c065cc8e746a74789b20466fa57d4bf | |
parent | fa770ce7fe67685c43780e219d8232efbee0bb8e (diff) | |
download | bitcoin-fa5ceb25fce2200edf6b8ebfa6d4f01ed6774b95.tar.xz |
test: Remove UninterruptibleSleep from test and replace it by SyncWithValidationInterfaceQueue
For the purpose of this test the two have the same outcome, but this one
is shorter and avoids a sleep for 0.1 seconds.
-rw-r--r-- | src/test/validation_block_tests.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/validation_block_tests.cpp b/src/test/validation_block_tests.cpp index b8af869b8e..c026e0f43d 100644 --- a/src/test/validation_block_tests.cpp +++ b/src/test/validation_block_tests.cpp @@ -204,9 +204,7 @@ BOOST_AUTO_TEST_CASE(processnewblock_signals_ordering) for (auto& t : threads) { t.join(); } - while (GetMainSignals().CallbacksPending() > 0) { - UninterruptibleSleep(std::chrono::milliseconds{100}); - } + SyncWithValidationInterfaceQueue(); UnregisterValidationInterface(&sub); |