Skip to content

Commit fa16406

Browse files
author
MarcoFalke
committed
test: Add SyncWithValidationInterfaceQueue to mockscheduler RPC
This makes existing tests less brittle, see https://github.com/bitcoin/bitcoin/pull/28108/files#r1268966663
1 parent d23fda0 commit fa16406

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rpc/node.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ static RPCHelpMan mockscheduler()
9393
// protect against null pointer dereference
9494
CHECK_NONFATAL(node_context->scheduler);
9595
node_context->scheduler->MockForward(std::chrono::seconds(delta_seconds));
96+
SyncWithValidationInterfaceQueue();
9697

9798
return UniValue::VNULL;
9899
},

0 commit comments

Comments
 (0)