File tree Expand file tree Collapse file tree 2 files changed +161
-181
lines changed
tools/unified-spec-runner Expand file tree Collapse file tree 2 files changed +161
-181
lines changed Original file line number Diff line number Diff line change @@ -107,27 +107,6 @@ function getClient(address) {
107
107
return new MongoClient ( `mongodb://${ address } ` , getEnvironmentalOptions ( ) ) ;
108
108
}
109
109
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
-
131
110
export class UnifiedMongoClient extends MongoClient {
132
111
commandEvents : CommandEvent [ ] = [ ] ;
133
112
cmapEvents : CmapEvent [ ] = [ ] ;
@@ -216,7 +195,7 @@ export class UnifiedMongoClient extends MongoClient {
216
195
mongodbLogPath : logCollector ,
217
196
...getEnvironmentalOptions ( ) ,
218
197
...( description . serverApi ? { serverApi : description . serverApi } : { } )
219
- } ) ;
198
+ } as any ) ;
220
199
this . logCollector = logCollector ;
221
200
222
201
this . ignoredEvents = [
You can’t perform that action at this time.
0 commit comments