Skip to content

Commit

Permalink
test(transactions): add test case for #15094
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 16, 2024
1 parent 341b238 commit 3fc9bc3
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 = TestModel.aggregate([{ $match: { _id: doc._id } }]).cursor();

Check failure on line 402 in test/docs/transactions.test.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

'TestModel' is not defined

Check failure on line 402 in test/docs/transactions.test.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

'TestModel' is not defined
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 3fc9bc3

Please sign in to comment.