diff --git a/test/integration/client-side-encryption/client_side_encryption.prose.test.js b/test/integration/client-side-encryption/client_side_encryption.prose.test.js index 0e773654ec7..ce04942be64 100644 --- a/test/integration/client-side-encryption/client_side_encryption.prose.test.js +++ b/test/integration/client-side-encryption/client_side_encryption.prose.test.js @@ -1561,7 +1561,7 @@ describe('Client Side Encryption Prose Tests', metadata, function () { keyName: 'foo' }; - it('should fail with no TLS', metadata, async function () { + it.skip('should fail with no TLS', metadata, async function () { try { await clientEncryptionNoTls.createDataKey('azure', { masterKey }); expect.fail('it must fail with no tls'); @@ -1569,7 +1569,7 @@ describe('Client Side Encryption Prose Tests', metadata, function () { //Expect an error indicating TLS handshake failed. expect(e.cause.message).to.include('certificate required'); } - }); + }).skipReason = 'TODO(NODE-6861): fix flaky test'; it('should succeed with valid TLS options', metadata, async function () { try { diff --git a/test/integration/client-side-encryption/client_side_encryption.spec.test.ts b/test/integration/client-side-encryption/client_side_encryption.spec.test.ts index 58fe5bb19bc..7d43268ef39 100644 --- a/test/integration/client-side-encryption/client_side_encryption.spec.test.ts +++ b/test/integration/client-side-encryption/client_side_encryption.spec.test.ts @@ -149,6 +149,14 @@ describe('Client Side Encryption (Unified)', function () { if (typeof shouldSkip === 'string') return shouldSkip; } + const flakyTests = { + 'rewrap to azure:name1': 'TODO(NODE-6860): fix flaky tests' + }; + + const skipReason = flakyTests[description]; + + if (skipReason) return skipReason; + return isServerless ? 'Unified CSFLE tests to not run on serverless' : false; } );