File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ describe("Telemetry", () => {
307
307
} ) ;
308
308
309
309
afterEach ( ( ) => {
310
- process . env . DO_NOT_TRACK = originalEnv ;
310
+ delete process . env . DO_NOT_TRACK ;
311
311
} ) ;
312
312
313
313
it ( "should not send events" , async ( ) => {
@@ -332,6 +332,10 @@ describe("Telemetry", () => {
332
332
) ;
333
333
} ) ;
334
334
335
+ afterEach ( ( ) => {
336
+ config . telemetry = "enabled" ;
337
+ } ) ;
338
+
335
339
const testCases : {
336
340
connectionString : string ;
337
341
isAtlas : boolean ;
@@ -388,6 +392,7 @@ describe("Telemetry", () => {
388
392
getRawMachineId : ( ) => Promise . resolve ( machineId ) ,
389
393
} ) ;
390
394
}
395
+
391
396
await session . connectToMongoDB ( testCase . connectionString , config . connectOptions , telemetry ) ;
392
397
expect ( session . serviceProvider ) . toBeDefined ( ) ;
393
398
You can’t perform that action at this time.
0 commit comments