From 6362e176c942af58124f5b70cf1ed59165092243 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Wed, 5 Nov 2025 09:30:25 -0500 Subject: [PATCH] test: retry tls tests --- .../client_side_encryption.prose.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration/client-side-encryption/client_side_encryption.prose.test.ts b/test/integration/client-side-encryption/client_side_encryption.prose.test.ts index 5ba6557b90..e953a03e30 100644 --- a/test/integration/client-side-encryption/client_side_encryption.prose.test.ts +++ b/test/integration/client-side-encryption/client_side_encryption.prose.test.ts @@ -1526,7 +1526,9 @@ describe('Client Side Encryption Prose Tests', metadata, function () { const masterKeyExpired = { ...masterKey, endpoint: '127.0.0.1:9000' }; const masterKeyInvalidHostname = { ...masterKey, endpoint: '127.0.0.1:9001' }; - it('should fail with no TLS', metadata, async function () { + it('should fail with no TLS', kmsTlsMetadata, async function () { + // NODE-6861: flakiness is caused by mock KMS servers + this.retries(2); try { await clientEncryptionNoTls.createDataKey('aws', { masterKey }); expect.fail('it must fail with no tls'); @@ -1630,7 +1632,9 @@ describe('Client Side Encryption Prose Tests', metadata, function () { keyName: 'foo' }; - it('should fail with no TLS', metadata, async function () { + it('should fail with no TLS', kmsTlsMetadata, async function () { + // NODE-6861: flakiness is caused by mock KMS servers + this.retries(2); try { await clientEncryptionNoTls.createDataKey('gcp', { masterKey }); expect.fail('it must fail with no tls');