mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 02:45:38 -06:00
ba2764a256
* 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
22 lines
827 B
TypeScript
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",
|
|
});
|
|
});
|
|
});
|