Skip to content

Commit d26d719

Browse files
lint?
1 parent d1c5a9c commit d26d719

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.evergreen/run-lint-checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -o errexit # Exit the script with error if any of the commands fail
33

4-
# source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
4+
source $DRIVERS_TOOLS/.evergreen/init-node-and-npm-env.sh
55

66
# Attempt to update our EVG config
77
# if it changes, crash so that any gen script changes are forced to be run before pushing

test/unit/cmap/connect.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { expect } from 'chai';
44
import { MongoCredentials } from '../../../src/cmap/auth/mongo_credentials';
55
import { connect, prepareHandshakeDocument } from '../../../src/cmap/connect';
66
import { type Connection, type ConnectionOptions } from '../../../src/cmap/connection';
7-
import { type ClientMetadata } from '../../../src/cmap/handshake/client_metadata';
7+
import {
8+
type ClientMetadata,
9+
makeClientMetadata
10+
} from '../../../src/cmap/handshake/client_metadata';
811
import { LEGACY_HELLO_COMMAND } from '../../../src/constants';
912
import { MongoNetworkError } from '../../../src/error';
1013
import { MongoClientAuthProviders } from '../../../src/mongo_client_auth_providers';
@@ -194,7 +197,7 @@ describe('Connect Tests', function () {
194197
connection: {},
195198
options: {
196199
...CONNECT_DEFAULTS,
197-
extendedMetadata: addContainerMetadata({} as ClientMetadata)
200+
metadata: Promise.resolve({} as ClientMetadata)
198201
}
199202
};
200203
});
@@ -226,7 +229,7 @@ describe('Connect Tests', function () {
226229
connection: {},
227230
options: {
228231
...CONNECT_DEFAULTS,
229-
extendedMetadata: addContainerMetadata({ appName: longAppName })
232+
metadata: makeClientMetadata([], { appName: longAppName })
230233
}
231234
};
232235
const handshakeDocument = await prepareHandshakeDocument(longAuthContext);
@@ -244,7 +247,7 @@ describe('Connect Tests', function () {
244247
connection: {},
245248
options: {
246249
...CONNECT_DEFAULTS,
247-
extendedMetadata: addContainerMetadata({ env: { name: 'aws.lambda' } })
250+
metadata: Promise.resolve({ env: { name: 'aws.lambda' } })
248251
}
249252
};
250253
});

0 commit comments

Comments
 (0)