Skip to content

Commit 9a99c8a

Browse files
W-A-Jamesnbbeeken
authored andcommitted
fix lint
1 parent e76790a commit 9a99c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/assorted/server_discovery_and_monitoring.spec.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,10 @@ async function executeSDAMTest(testData: SDAMTest) {
406406

407407
function checkoutStubImpl(appError) {
408408
return async function () {
409-
const connectionPool = this;
409+
const connectionPoolGeneration = this.generation;
410410
const fakeConnection = {
411411
generation:
412-
typeof appError.generation === 'number' ? appError.generation : connectionPool.generation,
412+
typeof appError.generation === 'number' ? appError.generation : connectionPoolGeneration,
413413
async command(_, __, ___) {
414414
if (appError.type === 'network') {
415415
throw new MongoNetworkError('test generated');

0 commit comments

Comments
 (0)