Skip to content

Commit 8eebe6a

Browse files
authored
refactor(NODE-6174): use client.s.options in session (#4134)
1 parent 465ffd9 commit 8eebe6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class ClientSession extends TypedEventEmitter<ClientSessionEvents> {
174174
this.sessionPool = sessionPool;
175175
this.hasEnded = false;
176176
this.clientOptions = clientOptions;
177-
this.timeoutMS = options.defaultTimeoutMS ?? client.options?.timeoutMS;
177+
this.timeoutMS = options.defaultTimeoutMS ?? client.s.options?.timeoutMS;
178178

179179
this.explicit = !!options.explicit;
180180
this[kServerSession] = this.explicit ? this.sessionPool.acquire() : null;

test/unit/sessions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe('Sessions - unit', function () {
333333

334334
before(() => {
335335
serverSessionSymbol = getSymbolFrom(
336-
new ClientSession({}, serverSessionPool, {}),
336+
new ClientSession(client, serverSessionPool, {}),
337337
'serverSession'
338338
);
339339
});

0 commit comments

Comments
 (0)