0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

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 2020-04-27 10:30:16 -04:00
parent fa770ce7fe
commit fa5ceb25fc
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -204,9 +204,7 @@ BOOST_AUTO_TEST_CASE(processnewblock_signals_ordering)
for (auto& t : threads) { for (auto& t : threads) {
t.join(); t.join();
} }
while (GetMainSignals().CallbacksPending() > 0) { SyncWithValidationInterfaceQueue();
UninterruptibleSleep(std::chrono::milliseconds{100});
}
UnregisterValidationInterface(&sub); UnregisterValidationInterface(&sub);