From 2fb938adf6d8f62845975ef6615371493b0c292f Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2026 09:51:24 +0000 Subject: [PATCH] ci: apply automated fixes --- packages/db/.busy-probe.mjs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/db/.busy-probe.mjs b/packages/db/.busy-probe.mjs index c3b681c8e..0c094405e 100644 --- a/packages/db/.busy-probe.mjs +++ b/packages/db/.busy-probe.mjs @@ -6,6 +6,13 @@ const txA = await a.transaction(); await txA.execute("insert into t values (1)"); const t0 = Date.now(); const txB = await b.transaction(); -try { await txB.execute("select 1"); console.log("B started after", Date.now()-t0, "ms (no busy)"); } -catch (e) { console.log("B failed after", Date.now()-t0, "ms:", e.code, e.message); } -setTimeout(async () => { await txA.rollback(); console.log("A released at", Date.now()-t0); }, 3000); +try { + await txB.execute("select 1"); + console.log("B started after", Date.now() - t0, "ms (no busy)"); +} catch (e) { + console.log("B failed after", Date.now() - t0, "ms:", e.code, e.message); +} +setTimeout(async () => { + await txA.rollback(); + console.log("A released at", Date.now() - t0); +}, 3000); -- 2.54.0