@@ -237,7 +237,9 @@ describe("resolvePreferredOpenClawTmpDir", () => {
|
237 | 237 | |
238 | 238 | expect(resolved).toBe(POSIX_OPENCLAW_TMP_DIR); |
239 | 239 | expect(chmodSync).toHaveBeenCalledWith(POSIX_OPENCLAW_TMP_DIR, 0o700); |
240 | | -expect(warn).toHaveBeenCalledWith(expect.stringContaining("tightened permissions on temp dir")); |
| 240 | +expect(warn).toHaveBeenCalledWith( |
| 241 | +`[openclaw] tightened permissions on temp dir: ${POSIX_OPENCLAW_TMP_DIR}`, |
| 242 | +); |
241 | 243 | expect(tmpdir).not.toHaveBeenCalled(); |
242 | 244 | }); |
243 | 245 | |
@@ -274,7 +276,9 @@ describe("resolvePreferredOpenClawTmpDir", () => {
|
274 | 276 | mode: 0o700, |
275 | 277 | }); |
276 | 278 | expect(chmodSync).toHaveBeenCalledWith(POSIX_OPENCLAW_TMP_DIR, 0o700); |
277 | | -expect(warn).toHaveBeenCalledWith(expect.stringContaining("tightened permissions on temp dir")); |
| 279 | +expect(warn).toHaveBeenCalledWith( |
| 280 | +`[openclaw] tightened permissions on temp dir: ${POSIX_OPENCLAW_TMP_DIR}`, |
| 281 | +); |
278 | 282 | expect(tmpdir).not.toHaveBeenCalled(); |
279 | 283 | }); |
280 | 284 | |
@@ -395,7 +399,9 @@ describe("resolvePreferredOpenClawTmpDir", () => {
|
395 | 399 | |
396 | 400 | expect(resolved).toBe(fallbackPath); |
397 | 401 | expect(chmodSync).toHaveBeenCalledWith(fallbackPath, 0o700); |
398 | | -expect(warn).toHaveBeenCalledWith(expect.stringContaining("tightened permissions on temp dir")); |
| 402 | +expect(warn).toHaveBeenCalledWith( |
| 403 | +`[openclaw] tightened permissions on temp dir: ${fallbackPath}`, |
| 404 | +); |
399 | 405 | }); |
400 | 406 | |
401 | 407 | it("uses /tmp/openclaw when another process tightened permissions before repair", () => { |
|