From c66ace7ecba5a9ade230114ea65b24822847edfc Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Tue, 28 Jan 2025 22:03:18 -0800 Subject: [PATCH] more --- test/js/sql/sql.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/js/sql/sql.test.ts b/test/js/sql/sql.test.ts index 5b07eae81de01d..c45b737d87e673 100644 --- a/test/js/sql/sql.test.ts +++ b/test/js/sql/sql.test.ts @@ -666,12 +666,12 @@ if (isDockerEnabled()) { ).toBe("testing"); }); - test("Uncaught transaction request errosó rs bubbles to transaction", async () => { + test("Uncaught transaction request errors are bubbled to transaction", async () => { const sql = postgres({ ...options, debug: true, idle_timeout: 1, fetch_types: false }); expect( await sql .begin(sql => [sql`select wat`, sql`select current_setting('bun_sql.test') as x, ${1} as a`]) - .catch(e => e.errno), + .catch(e => e.errno || e), ).toBe("42703"); });