mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-04 13:51:30 +00:00
fix: stabilize plugin startup boundaries
This commit is contained in:
@@ -152,6 +152,22 @@ describe("command queue", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("demotes live model switch lane failures to debug noise", async () => {
|
||||
const error = new Error("Live session model switch requested: anthropic/claude-opus-4-6");
|
||||
error.name = "LiveSessionModelSwitchError";
|
||||
|
||||
await expect(
|
||||
enqueueCommandInLane("nested", async () => {
|
||||
throw error;
|
||||
}),
|
||||
).rejects.toBe(error);
|
||||
|
||||
expect(diagnosticMocks.diag.error).not.toHaveBeenCalled();
|
||||
expect(diagnosticMocks.diag.debug).toHaveBeenCalledWith(
|
||||
expect.stringContaining("lane task interrupted: lane=nested"),
|
||||
);
|
||||
});
|
||||
|
||||
it("getActiveTaskCount returns count of currently executing tasks", async () => {
|
||||
const { task, release } = enqueueBlockedMainTask();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user