aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-27 10:30:16 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-05-13 19:58:11 -0400
commitfa5ceb25fce2200edf6b8ebfa6d4f01ed6774b95 (patch)
treeb1adfde10c065cc8e746a74789b20466fa57d4bf /src/test
parentfa770ce7fe67685c43780e219d8232efbee0bb8e (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/validation_block_tests.cpp4
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);