Files
openclaw/test/e2e/qa-lab/runtime/logging-file-boundary-runtime.test.ts
Vincent Koc ba2764a256 test(qa): cover remote logging boundaries (#118951)
* test(qa): cover remote logging boundaries

* test(qa): tolerate gateway log interleaving

* test(qa): satisfy logging type guards

* test(qa): always stop log follow child
2026-08-04 06:53:49 +08:00

22 lines
827 B
TypeScript

import { afterEach, describe, expect, it } from "vitest";
import { useAutoCleanupTempDirTracker } from "../../../helpers/temp-dir.js";
import { runLoggingFileBoundary } from "./logging-file-boundary-runtime.js";
const tempDirs = useAutoCleanupTempDirTracker(afterEach);
describe("logging file boundary runtime", () => {
it("rotates valid JSONL and preserves linked trace fields", async () => {
const root = tempDirs.make("openclaw-logging-boundary-");
const result = await runLoggingFileBoundary(root);
expect(result.currentRecords).toBeGreaterThan(0);
expect(result.archivedRecords).toBeGreaterThan(0);
expect(result.trace).toEqual({
traceId: "4bf92f3577b34da6a3ce929d0e0e4736",
spanId: "00f067aa0ba902b7",
parentSpanId: "1111111111111111",
traceFlags: "01",
});
});
});