Skip to content

Commit d3813b8

Browse files
committed
chore: fix test
1 parent 403b57c commit d3813b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/compass-e2e-tests/tests/logging.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ describe('Logging and Telemetry integration', function () {
210210
attr: (actual: any) => {
211211
expect(actual.url).to.match(/^mongodb:\/\/127.0.0.1:27091/);
212212
expect(actual.csfle).to.equal(null);
213+
expect(actual).to.have.property('connectionId', 0);
213214
},
214215
},
215216
{
@@ -286,6 +287,7 @@ describe('Logging and Telemetry integration', function () {
286287
ctx: 'Connection 0',
287288
msg: 'Connecting Succeeded',
288289
attr: {
290+
connectionId: 0,
289291
isMongos: false,
290292
isWritable: true,
291293
},

packages/data-service/src/data-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ class DataServiceImpl extends WithLogContext implements DataService {
16331633
this._crudClient
16341634
);
16351635
} catch (error) {
1636-
this._logger.info(mongoLogId(1_001_000_359), 'Connecting Error', {
1636+
this._logger.info(mongoLogId(1_001_000_359), 'Connecting Failed', {
16371637
connectionId: this._id,
16381638
error:
16391639
error && typeof error === 'object' && 'message' in error

0 commit comments

Comments
 (0)