From 0770194b29d469c1ae21941134243d4bb549bf2e Mon Sep 17 00:00:00 2001 From: Shadow Date: Tue, 27 Jan 2026 18:10:19 -0600 Subject: [PATCH] test: align unhandled rejection logs (#2980) (thanks @elliotsecops) --- src/infra/unhandled-rejections.fatal-detection.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/infra/unhandled-rejections.fatal-detection.test.ts b/src/infra/unhandled-rejections.fatal-detection.test.ts index b9ff4557b..270d1bfc5 100644 --- a/src/infra/unhandled-rejections.fatal-detection.test.ts +++ b/src/infra/unhandled-rejections.fatal-detection.test.ts @@ -47,7 +47,7 @@ describe("installUnhandledRejectionHandler - fatal detection", () => { expect(exitCalls).toEqual([1]); expect(consoleErrorSpy).toHaveBeenCalledWith( - "[clawdbot] FATAL unhandled rejection:", + "[moltbot] FATAL unhandled rejection:", expect.stringContaining("Out of memory"), ); }); @@ -83,7 +83,7 @@ describe("installUnhandledRejectionHandler - fatal detection", () => { expect(exitCalls).toEqual([1]); expect(consoleErrorSpy).toHaveBeenCalledWith( - "[clawdbot] CONFIGURATION ERROR - requires fix:", + "[moltbot] CONFIGURATION ERROR - requires fix:", expect.stringContaining("Invalid config"), ); }); @@ -109,7 +109,7 @@ describe("installUnhandledRejectionHandler - fatal detection", () => { expect(exitCalls).toEqual([]); expect(consoleWarnSpy).toHaveBeenCalledWith( - "[clawdbot] Non-fatal unhandled rejection (continuing):", + "[moltbot] Non-fatal unhandled rejection (continuing):", expect.stringContaining("fetch failed"), ); }); @@ -132,7 +132,7 @@ describe("installUnhandledRejectionHandler - fatal detection", () => { expect(exitCalls).toEqual([1]); expect(consoleErrorSpy).toHaveBeenCalledWith( - "[clawdbot] Unhandled promise rejection:", + "[moltbot] Unhandled promise rejection:", expect.stringContaining("Something went wrong"), ); });