test(core): remove stale unused test bindings

This commit is contained in:
Vincent Koc
2026-06-04 17:02:08 -07:00
parent 5bc300a1df
commit 563dac5989
2 changed files with 7 additions and 7 deletions

View File

@@ -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";

View File

@@ -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<string, TaskFlowRecord>();
@@ -299,7 +299,7 @@ describe("task-flow-registry store runtime", () => {
if (process.platform === "win32") {
return;
}
await withFlowRegistryTempDir(async (root) => {
await withFlowRegistryTempDir(async () => {
resetTaskFlowRegistryForTests();
createManagedTaskFlow({