From fa1640617e061431059908fbf496dccca6b4e112 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 21 Jul 2023 14:42:49 +0200 Subject: [PATCH] test: Add SyncWithValidationInterfaceQueue to mockscheduler RPC This makes existing tests less brittle, see https://github.com/bitcoin/bitcoin/pull/28108/files#r1268966663 --- src/rpc/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc/node.cpp b/src/rpc/node.cpp index 38284016424..f614253195b 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; },