From c82c7bedc10e4f8f3f5d37565c7ed28e1c823fd3 Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:55:16 -0300 Subject: [PATCH] test(batches): pin APP_LOG_LEVEL in the sweep-ownership test so the log assertion is environment-independent --- tests/unit/batches-delete-completed-ownership-wvxc.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/batches-delete-completed-ownership-wvxc.test.ts b/tests/unit/batches-delete-completed-ownership-wvxc.test.ts index 3a5e4d46a6..2fef3aa60f 100644 --- a/tests/unit/batches-delete-completed-ownership-wvxc.test.ts +++ b/tests/unit/batches-delete-completed-ownership-wvxc.test.ts @@ -32,6 +32,9 @@ import path from "node:path"; const TEST_DATA_DIR = fs.mkdtempSync(path.join(os.tmpdir(), "wvxc-")); process.env.DATA_DIR = TEST_DATA_DIR; +// The soft-delete-failure test observes `log.warn`; pin the level so the assertion +// does not depend on the ambient APP_LOG_LEVEL (a documented setting like `error` would hide it). +process.env.APP_LOG_LEVEL = "warn"; const { createFile, getFile, getFileContent } = await import("../../src/lib/db/files.ts"); const { createBatch, getBatch, deleteCompletedBatches } =