Skip to content

Commit

Permalink
test: fix tests re: #8571
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 14, 2020
1 parent 15b7f05 commit 5061e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/docs/transactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ describe('transactions', function() {
yield Test.createCollection();
const session = yield db.startSession();
yield session.withTransaction(() => co(function*() {
const [test] = yield Test.create([{}], { session });
const test = yield Test.create([{}], { session }).then(res => res[0]);
yield test.save(); // throws DocumentNotFoundError
}));
});
Expand Down

0 comments on commit 5061e94

Please sign in to comment.