Skip to content

Commit

Permalink
Update test/docs/transactions.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey authored Feb 14, 2024
1 parent 54e52b0 commit f27e13f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/docs/transactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ describe('transactions', function() {
await db.transaction(async(session) => {
await doc.save({ session });

// This is the important bit. Uncomment this to trigger a transaction retry.
if (attempt === 0) {
attempt += 1;
throw new mongoose.mongo.MongoServerError({
Expand Down

0 comments on commit f27e13f

Please sign in to comment.