mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-09 00:01:17 +00:00
Tests: stabilize shard-2 queue and channel state
This commit is contained in:
committed by
Vignesh
parent
9c185faba9
commit
4d54376483
@@ -29,6 +29,7 @@ let getActiveTaskCount: CommandQueueModule["getActiveTaskCount"];
|
||||
let getQueueSize: CommandQueueModule["getQueueSize"];
|
||||
let markGatewayDraining: CommandQueueModule["markGatewayDraining"];
|
||||
let resetAllLanes: CommandQueueModule["resetAllLanes"];
|
||||
let resetCommandQueueStateForTest: CommandQueueModule["resetCommandQueueStateForTest"];
|
||||
let setCommandLaneConcurrency: CommandQueueModule["setCommandLaneConcurrency"];
|
||||
let waitForActiveTasks: CommandQueueModule["waitForActiveTasks"];
|
||||
|
||||
@@ -67,10 +68,11 @@ describe("command queue", () => {
|
||||
getQueueSize,
|
||||
markGatewayDraining,
|
||||
resetAllLanes,
|
||||
resetCommandQueueStateForTest,
|
||||
setCommandLaneConcurrency,
|
||||
waitForActiveTasks,
|
||||
} = await import("./command-queue.js"));
|
||||
resetAllLanes();
|
||||
resetCommandQueueStateForTest();
|
||||
// Queue state is global across module instances, so reset main lane
|
||||
// concurrency explicitly to avoid cross-file leakage.
|
||||
setCommandLaneConcurrency(CommandLane.Main, 1);
|
||||
|
||||
Reference in New Issue
Block a user