mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -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:
parent
fa770ce7fe
commit
fa5ceb25fc
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue