Skip to content

Commit 39fbcb4

Browse files
committed
fixup: update test
1 parent 580c43c commit 39fbcb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/logging/src/setup-logger-and-telemetry.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,13 @@ describe('setupLoggerAndTelemetry', function () {
297297
error: new Error('failed'),
298298
duringLoad: false,
299299
resolutionDetails: [],
300+
durationMs: 1,
300301
});
301302
bus.emit('devtools-connect:resolve-srv-succeeded', {
302303
from: 'mongodb+srv://foo:[email protected]/',
303304
to: 'mongodb://foo:[email protected]/',
304305
resolutionDetails: [],
306+
durationMs: 1,
305307
});
306308
bus.emit('devtools-connect:missing-optional-dependency', {
307309
name: 'kerberos',
@@ -427,12 +429,14 @@ describe('setupLoggerAndTelemetry', function () {
427429
error: 'failed',
428430
duringLoad: false,
429431
resolutionDetails: [],
432+
durationMs: 1,
430433
});
431434
expect(logOutput[i].msg).to.equal('Resolving SRV record succeeded');
432435
expect(logOutput[i++].attr).to.deep.equal({
433436
from: 'mongodb+srv://<credentials>@hello.world/',
434437
to: 'mongodb://<credentials>@db.hello.world/',
435438
resolutionDetails: [],
439+
durationMs: 1,
436440
});
437441
expect(logOutput[i].msg).to.equal('Missing optional dependency');
438442
expect(logOutput[i++].attr).to.deep.equal({

0 commit comments

Comments
 (0)