test: Add SyncWithValidationInterfaceQueue to mockscheduler RPC

This makes existing tests less brittle, see
https://github.com/bitcoin/bitcoin/pull/28108/files#r1268966663
This commit is contained in:
MarcoFalke
2023-07-21 14:42:49 +02:00
parent d23fda0584
commit fa1640617e

View File

@@ -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;
}, },