Skip to content

Commit baefc93

Browse files
committed
test(NODE-6343): unskip Case 4: KMIP should fail with no TLS
1 parent 62144ed commit baefc93

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.test.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,17 +1654,9 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
16541654
const masterKey = {};
16551655

16561656
it('should fail with no TLS', metadata, async function () {
1657-
if (gte(coerce(process.version), coerce('19'))) {
1658-
this.test.skipReason = 'TODO(NODE-4942): fix failing csfle kmip test on Node19+';
1659-
this.skip();
1660-
}
1661-
try {
1662-
await clientEncryptionNoTls.createDataKey('kmip', { masterKey });
1663-
expect.fail('it must fail with no tls');
1664-
} catch (e) {
1665-
//Expect an error indicating TLS handshake failed.
1666-
expect(e.cause.message).to.match(/before secure TLS connection|handshake/);
1667-
}
1657+
const e = await clientEncryptionNoTls.createDataKey('kmip', { masterKey }).catch(e => e);
1658+
//Expect an error indicating TLS handshake failed.
1659+
expect(e.cause.message).to.match(/before secure TLS connection|handshake/);
16681660
});
16691661

16701662
it('should succeed with valid TLS options', metadata, async function () {

0 commit comments

Comments
 (0)