We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13bb49c commit e6ff085Copy full SHA for e6ff085
test/tools/runner/filters/client_encryption_filter.js
@@ -1,6 +1,8 @@
1
'use strict';
2
3
const mongodb = require('../../../../index');
4
+const semver = require('semver');
5
+
6
/**
7
* Filter for whether or not a test needs / doesn't need Client Side Encryption
8
*
@@ -40,8 +42,11 @@ class ClientSideEncryptionFilter {
40
42
const clientSideEncryption =
41
43
test.metadata && test.metadata.requires && test.metadata.requires.clientSideEncryption;
44
45
+ // CSFLE is only supported on LTS versions of node
46
+ const nodeSupportsCSFLE = semver.satisfies(process.version, '>4');
47
48
const ret = typeof clientSideEncryption !== 'boolean' || clientSideEncryption === this.enabled;
- return ret;
49
+ return ret && nodeSupportsCSFLE;
50
}
51
52
0 commit comments