mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02: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:
parent
d23fda0584
commit
fa1640617e
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ static RPCHelpMan mockscheduler()
|
|||
// protect against null pointer dereference
|
||||
CHECK_NONFATAL(node_context->scheduler);
|
||||
node_context->scheduler->MockForward(std::chrono::seconds(delta_seconds));
|
||||
SyncWithValidationInterfaceQueue();
|
||||
|
||||
return UniValue::VNULL;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue