Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jun 10, 2023
1 parent 6b9eb31 commit ba6bdcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]);
Expand Down

0 comments on commit ba6bdcc

Please sign in to comment.