refactor(agents): remove queued writer append alias · openclaw/openclaw@6dec15b
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
3 | 3 | import os from "node:os"; |
4 | 4 | import path from "node:path"; |
5 | 5 | import { afterEach, describe, expect, it } from "vitest"; |
6 | | -import { getQueuedFileWriter, resolveQueuedFileAppendFlags } from "./queued-file-writer.js"; |
| 6 | +import { getQueuedFileWriter } from "./queued-file-writer.js"; |
7 | 7 | |
8 | 8 | const tempDirs: string[] = []; |
9 | 9 | |
@@ -21,16 +21,6 @@ afterEach(() => {
|
21 | 21 | }); |
22 | 22 | |
23 | 23 | describe("getQueuedFileWriter", () => { |
24 | | -it("keeps append flags usable when O_NOFOLLOW is unavailable", () => { |
25 | | -expect( |
26 | | -resolveQueuedFileAppendFlags({ |
27 | | -O_APPEND: 0x01, |
28 | | -O_CREAT: 0x02, |
29 | | -O_WRONLY: 0x04, |
30 | | -}), |
31 | | -).toBe(0x07); |
32 | | -}); |
33 | | - |
34 | 24 | it("creates log files with restrictive permissions", async () => { |
35 | 25 | const tmpDir = makeTempDir(); |
36 | 26 | const filePath = path.join(tmpDir, "trace.jsonl"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。