Skip to content

Commit fa5ceb2

Browse files
author
MarcoFalke
committed
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.
1 parent fa770ce commit fa5ceb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/validation_block_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ BOOST_AUTO_TEST_CASE(processnewblock_signals_ordering)
204204
for (auto& t : threads) {
205205
t.join();
206206
}
207-
while (GetMainSignals().CallbacksPending() > 0) {
208-
UninterruptibleSleep(std::chrono::milliseconds{100});
209-
}
207+
SyncWithValidationInterfaceQueue();
210208

211209
UnregisterValidationInterface(&sub);
212210

0 commit comments

Comments
 (0)