mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02: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:
parent
fa770ce7fe
commit
fa5ceb25fc
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user