Skip to content

Commit aa5b165

Browse files
authored
test: retry tls tests (#4778)
1 parent 0e97efc commit aa5b165

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,9 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
15261526
const masterKeyExpired = { ...masterKey, endpoint: '127.0.0.1:9000' };
15271527
const masterKeyInvalidHostname = { ...masterKey, endpoint: '127.0.0.1:9001' };
15281528

1529-
it('should fail with no TLS', metadata, async function () {
1529+
it('should fail with no TLS', kmsTlsMetadata, async function () {
1530+
// NODE-6861: flakiness is caused by mock KMS servers
1531+
this.retries(2);
15301532
try {
15311533
await clientEncryptionNoTls.createDataKey('aws', { masterKey });
15321534
expect.fail('it must fail with no tls');
@@ -1630,7 +1632,9 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
16301632
keyName: 'foo'
16311633
};
16321634

1633-
it('should fail with no TLS', metadata, async function () {
1635+
it('should fail with no TLS', kmsTlsMetadata, async function () {
1636+
// NODE-6861: flakiness is caused by mock KMS servers
1637+
this.retries(2);
16341638
try {
16351639
await clientEncryptionNoTls.createDataKey('gcp', { masterKey });
16361640
expect.fail('it must fail with no tls');

0 commit comments

Comments
 (0)