mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 07:51:26 +00:00
test: remove low-value lock-storePath guard wrapper test
This commit is contained in:
@@ -20,7 +20,6 @@ import {
|
|||||||
validateSessionId,
|
validateSessionId,
|
||||||
} from "./paths.js";
|
} from "./paths.js";
|
||||||
import { resolveSessionResetPolicy } from "./reset.js";
|
import { resolveSessionResetPolicy } from "./reset.js";
|
||||||
import { updateSessionStore as updateSessionStoreUnsafe } from "./store.js";
|
|
||||||
import {
|
import {
|
||||||
appendAssistantMessageToSessionTranscript,
|
appendAssistantMessageToSessionTranscript,
|
||||||
resolveMirroredTranscriptText,
|
resolveMirroredTranscriptText,
|
||||||
@@ -390,14 +389,6 @@ describe("session store lock (Promise chain mutex)", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("withSessionStoreLock storePath guard (#14717)", () => {
|
|
||||||
it("throws descriptive error when storePath is undefined", async () => {
|
|
||||||
await expect(
|
|
||||||
updateSessionStoreUnsafe(undefined as unknown as string, (store) => store),
|
|
||||||
).rejects.toThrow("withSessionStoreLock: storePath must be a non-empty string");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe("resolveMirroredTranscriptText", () => {
|
describe("resolveMirroredTranscriptText", () => {
|
||||||
it("prefers media filenames over text", () => {
|
it("prefers media filenames over text", () => {
|
||||||
const result = resolveMirroredTranscriptText({
|
const result = resolveMirroredTranscriptText({
|
||||||
|
|||||||
Reference in New Issue
Block a user