Skip to content

Commit

Permalink
Merge pull request #15106 from Automattic/vkarpov15/gh-15094
Browse files Browse the repository at this point in the history
test(transactions): add test case for #15094
  • Loading branch information
vkarpov15 authored Dec 17, 2024
2 parents b9136c1 + 2b37dd6 commit 5782409
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/docs/transactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ describe('transactions', function() {
let docs = await Test.aggregate([{ $match: { _id: doc._id } }]);
assert.equal(docs.length, 1);

const aggCursor = Test.aggregate([{ $match: { _id: doc._id } }]).cursor();
docs = [await aggCursor.next()];
assert.equal(docs[0].name, 'test_transactionAsyncLocalStorage');

docs = await Test.find({ _id: doc._id });
assert.equal(docs.length, 1);

Expand Down

0 comments on commit 5782409

Please sign in to comment.