Skip to content

Commit

Permalink
chore(NODE-3521): find/agg cursor session always there
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Mar 1, 2022
1 parent ddc4d24 commit 246eff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cursor/find_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class FindCursor<TSchema = Document> extends AbstractCursor<TSchema> {
}

/** @internal */
_initialize(session: ClientSession | undefined, callback: Callback<ExecutionResult>): void {
_initialize(session: ClientSession, callback: Callback<ExecutionResult>): void {
const findOperation = new FindOperation(undefined, this.namespace, this[kFilter], {
...this[kBuiltOptions], // NOTE: order matters here, we may need to refine this
...this.cursorOptions,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/cursor/find_cursor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const test = {};
describe('Find Cursor', function () {
describe('#next', function () {
afterEach(function () {
mock.cleanup()
mock.cleanup();
});
beforeEach(function () {
return mock.createServer().then(mockServer => {
Expand Down

0 comments on commit 246eff9

Please sign in to comment.