mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
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:
@@ -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;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user