diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-21 14:42:49 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-21 14:44:30 +0200 |
commit | fa1640617e061431059908fbf496dccca6b4e112 (patch) | |
tree | 465e5b3df26d0e3bfb858dafcb772b842f190fd9 /src | |
parent | d23fda05842ba4539b225bbab01b94df0060f697 (diff) |
test: Add SyncWithValidationInterfaceQueue to mockscheduler RPC
This makes existing tests less brittle, see
https://github.com/bitcoin/bitcoin/pull/28108/files#r1268966663
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/node.cpp b/src/rpc/node.cpp index 3828401642..f614253195 100644 --- a/src/rpc/node.cpp +++ b/src/rpc/node.cpp @@ -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; }, |