@@ -212,9 +212,15 @@ describe('MongoCluster', function () {
212
212
} ) ;
213
213
214
214
it ( 'can spawn a 6.x enterprise standalone mongod' , async function ( ) {
215
- if ( process . platform === 'win32' && process . env . CI ) {
216
- return this . skip ( ) ; // Github Actions CI runners go OOM when extracting the 6.x enterprise tarball...
215
+ if (
216
+ ( process . platform === 'win32' || process . platform === 'linux' ) &&
217
+ process . env . CI
218
+ ) {
219
+ // Github Actions CI runners go OOM on Windows when extracting the 6.x enterprise tarball...
220
+ // On Ubuntu, 6.x only supports up to 22.04, while CI runs on 24.04.
221
+ return this . skip ( ) ;
217
222
}
223
+
218
224
cluster = await MongoCluster . start ( {
219
225
version : '6.x-enterprise' ,
220
226
topology : 'standalone' ,
@@ -229,6 +235,21 @@ describe('MongoCluster', function () {
229
235
expect ( ok ) . to . equal ( 1 ) ;
230
236
} ) ;
231
237
238
+ it ( 'can spawn a 8.x enterprise standalone mongod' , async function ( ) {
239
+ cluster = await MongoCluster . start ( {
240
+ version : '8.x-enterprise' ,
241
+ topology : 'standalone' ,
242
+ tmpDir,
243
+ } ) ;
244
+ expect ( cluster . connectionString ) . to . be . a ( 'string' ) ;
245
+ expect ( cluster . serverVersion ) . to . match ( / ^ 8 \. / ) ;
246
+ expect ( cluster . serverVariant ) . to . equal ( 'enterprise' ) ;
247
+ const { ok } = await cluster . withClient ( async ( client ) => {
248
+ return await client . db ( 'admin' ) . command ( { ping : 1 } ) ;
249
+ } ) ;
250
+ expect ( ok ) . to . equal ( 1 ) ;
251
+ } ) ;
252
+
232
253
it ( 'can serialize and deserialize sharded cluster info' , async function ( ) {
233
254
cluster = await MongoCluster . start ( {
234
255
version : '6.x' ,
0 commit comments