File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
packages/compass-e2e-tests Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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' ) ) ;
You can’t perform that action at this time.
0 commit comments