Skip to content

Commit 6aedfff

Browse files
committed
Disable 6.x test on linux
1 parent 80aa3f0 commit 6aedfff

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

packages/mongodb-runner/src/mongocluster.spec.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,15 @@ describe('MongoCluster', function () {
212212
});
213213

214214
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();
217222
}
223+
218224
cluster = await MongoCluster.start({
219225
version: '6.x-enterprise',
220226
topology: 'standalone',
@@ -229,6 +235,21 @@ describe('MongoCluster', function () {
229235
expect(ok).to.equal(1);
230236
});
231237

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+
232253
it('can serialize and deserialize sharded cluster info', async function () {
233254
cluster = await MongoCluster.start({
234255
version: '6.x',

0 commit comments

Comments
 (0)