test: Add SyncWithValidationInterfaceQueue to mockscheduler RPC

This makes existing tests less brittle, see
https://github.com/bitcoin/bitcoin/pull/28108/files#r1268966663
pull/28118/head
MarcoFalke 1 year ago
parent d23fda0584
commit fa1640617e
No known key found for this signature in database

@ -93,6 +93,7 @@ static RPCHelpMan mockscheduler()
// protect against null pointer dereference // protect against null pointer dereference
CHECK_NONFATAL(node_context->scheduler); CHECK_NONFATAL(node_context->scheduler);
node_context->scheduler->MockForward(std::chrono::seconds(delta_seconds)); node_context->scheduler->MockForward(std::chrono::seconds(delta_seconds));
SyncWithValidationInterfaceQueue();
return UniValue::VNULL; return UniValue::VNULL;
}, },

Loading…
Cancel
Save