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.
This commit is contained in:
MarcoFalke committed 2020-05-13 19:58:11 -04:00
1 parent fa770ce7fe
commit fa5ceb25fc
1 file changed
+1 -3
+1 -3
View File
@@ -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);