Skip to content

Commit 6b85cd5

Browse files
committed
comments
1 parent 6eb7796 commit 6b85cd5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

packages/compass-e2e-tests/helpers/compass.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ export function updateMongoDBServerInfo() {
113113
'server-info',
114114
'--',
115115
'--connectionString',
116-
process.env.TEST_ATLAS_CLOUD_EXTERNAL_CONNECTION_STRING_1 ||
117-
`mongodb://127.0.0.1:${String(MONGODB_TEST_SERVER_PORT)}`,
116+
DEFAULT_CONNECTION_STRING_1,
118117
],
119118
{ encoding: 'utf-8' }
120119
);

packages/compass-e2e-tests/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,11 @@ async function main() {
285285
// will also get the slow first run experience for no good reason unless it is
286286
// the time-to-first-query.ts test.
287287
// So yeah.. this is a bit of a micro optimisation.
288-
for (let i = 0; i < tests.length; ++i) {
289-
if (tests[i] === FIRST_TEST) {
290-
[tests[i], tests[0]] = [tests[0], tests[i]];
291-
break;
292-
}
293-
}
288+
tests.sort((a, b) => {
289+
if (a === FIRST_TEST) return -1;
290+
else if (b === FIRST_TEST) return 1;
291+
else return 0;
292+
});
294293

295294
// Ensure the insert-data mocha hooks are run.
296295
tests.unshift(path.join('helpers', 'insert-data.ts'));

0 commit comments

Comments
 (0)