Skip to content

Commit ddc1be8

Browse files
committed
style(NODE-5170): eslint
1 parent 421e3de commit ddc1be8

File tree

2 files changed

+161
-181
lines changed

2 files changed

+161
-181
lines changed

test/tools/unified-spec-runner/entities.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -107,27 +107,6 @@ function getClient(address) {
107107
return new MongoClient(`mongodb://${address}`, getEnvironmentalOptions());
108108
}
109109

110-
// TODO(NODE-4813): Remove this class in favour of a simple object with a write method
111-
/* TODO(NODE-4813): Ensure that the object that we replace this with has logic to convert the
112-
* collected log into the format require by the unified spec runner
113-
* (see ExpectedLogMessage type in schema.ts) */
114-
export class UnifiedLogCollector extends Writable {
115-
collectedLogs: LogMessage[] = [];
116-
117-
constructor() {
118-
super({ objectMode: true });
119-
}
120-
121-
_write(
122-
log: LogMessage,
123-
_: string,
124-
callback: (e: Error | null, l: LogMessage | undefined) => void
125-
) {
126-
this.collectedLogs.push(log);
127-
callback(null, log);
128-
}
129-
}
130-
131110
export class UnifiedMongoClient extends MongoClient {
132111
commandEvents: CommandEvent[] = [];
133112
cmapEvents: CmapEvent[] = [];
@@ -216,7 +195,7 @@ export class UnifiedMongoClient extends MongoClient {
216195
mongodbLogPath: logCollector,
217196
...getEnvironmentalOptions(),
218197
...(description.serverApi ? { serverApi: description.serverApi } : {})
219-
});
198+
} as any);
220199
this.logCollector = logCollector;
221200

222201
this.ignoredEvents = [

0 commit comments

Comments
 (0)