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", () => {
307307 } ) ;
308308
309309 afterEach ( ( ) => {
310- process . env . DO_NOT_TRACK = originalEnv ;
310+ delete process . env . DO_NOT_TRACK ;
311311 } ) ;
312312
313313 it ( "should not send events" , async ( ) => {
@@ -332,6 +332,10 @@ describe("Telemetry", () => {
332332 ) ;
333333 } ) ;
334334
335+ afterEach ( ( ) => {
336+ config . telemetry = "enabled" ;
337+ } ) ;
338+
335339 const testCases : {
336340 connectionString : string ;
337341 isAtlas : boolean ;
@@ -388,6 +392,7 @@ describe("Telemetry", () => {
388392 getRawMachineId : ( ) => Promise . resolve ( machineId ) ,
389393 } ) ;
390394 }
395+
391396 await session . connectToMongoDB ( testCase . connectionString , config . connectOptions , telemetry ) ;
392397 expect ( session . serviceProvider ) . toBeDefined ( ) ;
393398
You can’t perform that action at this time.
0 commit comments