mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-01 19:21:10 +00: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
@ -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…
x
Reference in New Issue
Block a user