From 563dac59899809f9e8a91d165dba417e82c859d0 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 4 Jun 2026 17:02:08 -0700 Subject: [PATCH] test(core): remove stale unused test bindings --- src/crestodian/rescue-message.test.ts | 2 +- src/tasks/task-flow-registry.store.test.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/crestodian/rescue-message.test.ts b/src/crestodian/rescue-message.test.ts index fd21dfb05837..d1e9715a2d85 100644 --- a/src/crestodian/rescue-message.test.ts +++ b/src/crestodian/rescue-message.test.ts @@ -1,7 +1,7 @@ import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; -import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; +import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import type { CommandContext } from "../auto-reply/reply/commands-types.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { RuntimeEnv } from "../runtime.js"; diff --git a/src/tasks/task-flow-registry.store.test.ts b/src/tasks/task-flow-registry.store.test.ts index c1c4dda8a9ec..134469c8623d 100644 --- a/src/tasks/task-flow-registry.store.test.ts +++ b/src/tasks/task-flow-registry.store.test.ts @@ -150,7 +150,7 @@ describe("task-flow-registry store runtime", () => { }); it("rejects corrupt persisted flow rows during sqlite restore", async () => { - await withFlowRegistryTempDir(async (root) => { + await withFlowRegistryTempDir(async () => { resetTaskFlowRegistryForTests(); const created = createManagedTaskFlow({ @@ -174,7 +174,7 @@ describe("task-flow-registry store runtime", () => { }); it("drops invalid requester origins during sqlite restore", async () => { - await withFlowRegistryTempDir(async (root) => { + await withFlowRegistryTempDir(async () => { resetTaskFlowRegistryForTests(); const created = createManagedTaskFlow({ @@ -203,7 +203,7 @@ describe("task-flow-registry store runtime", () => { }); it("restores persisted wait-state, revision, and cancel intent from sqlite", async () => { - await withFlowRegistryTempDir(async (root) => { + await withFlowRegistryTempDir(async () => { resetTaskFlowRegistryForTests(); const created = createManagedTaskFlow({ @@ -248,7 +248,7 @@ describe("task-flow-registry store runtime", () => { }); it("round-trips explicit json null through sqlite", async () => { - await withFlowRegistryTempDir(async (root) => { + await withFlowRegistryTempDir(async () => { resetTaskFlowRegistryForTests(); const created = createManagedTaskFlow({ @@ -269,7 +269,7 @@ describe("task-flow-registry store runtime", () => { }); it("prunes large sqlite snapshots without binding every flow id at once", async () => { - await withFlowRegistryTempDir(async (root) => { + await withFlowRegistryTempDir(async () => { resetTaskFlowRegistryForTests(); const flows = new Map(); @@ -299,7 +299,7 @@ describe("task-flow-registry store runtime", () => { if (process.platform === "win32") { return; } - await withFlowRegistryTempDir(async (root) => { + await withFlowRegistryTempDir(async () => { resetTaskFlowRegistryForTests(); createManagedTaskFlow({