From ba6bdccba09bbff97120362f4557d335499033de Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 10 Jun 2023 13:19:41 +0800 Subject: [PATCH] f --- test/client.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/client.test.ts b/test/client.test.ts index cd7ff86..accfe2a 100644 --- a/test/client.test.ts +++ b/test/client.test.ts @@ -1419,6 +1419,9 @@ describe('test/client.test.ts', () => { assert.equal(count, 1); await db.beginTransactionScope(async conn => { + assert.equal(typeof conn.threadId, 'number'); + assert(conn.threadId! > 0); + assert.equal(conn.threadId, conn.conn!.threadId); await conn.query(`insert into ??(name, email, gmt_create, gmt_modified) values(?, ?, now(), now())`, [ table, prefix + 'beginTransactionScope1', prefix + 'm@beginTransactionScope1.com' ]);