Skip to content

Commit f5425c1

Browse files
authored
chore(cli-repl): skip QE test on macOS 10.14 (#1321)
Indexed search requires AES-CTR support, which is not available in the native crypto implementation of macOS 10.14.
1 parent 1845bcb commit f5425c1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/cli-repl/test/e2e-fle.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { once } from 'events';
1313
import { serialize } from 'v8';
1414
import { inspect } from 'util';
1515
import path from 'path';
16+
import os from 'os';
1617

1718
describe('FLE tests', () => {
1819
const testServer = startTestServer('not-shared', '--replicaset', '--nodes', '1');
@@ -258,7 +259,14 @@ describe('FLE tests', () => {
258259
context('6.0+', () => {
259260
skipIfServerVersion(testServer, '< 6.0'); // FLE2 only available on 6.0+
260261

261-
it('allows explicit encryption with bypassQueryAnalysis', async() => {
262+
it('allows explicit encryption with bypassQueryAnalysis', async function() {
263+
if (os.type() === 'Darwin' && +os.release().split('.')[0] < 20) {
264+
// Indexed search is not supported on macOS 10.14 (which in turn is
265+
// not supported by 6.0+ servers anyway).
266+
// See e.g. https://jira.mongodb.org/browse/MONGOCRYPT-440
267+
return this.skip();
268+
}
269+
262270
// No --cryptSharedLibPath since bypassQueryAnalysis is also a community edition feature
263271
const shell = TestShell.start({ args: ['--nodb'] });
264272
const uri = JSON.stringify(await testServer.connectionString());

0 commit comments

Comments
 (0)