mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
test(core): remove stale unused test bindings
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user