Skip to content

Commit bf69bd6

Browse files
authored
test(NODE-5033): fix handshake error message check (#3558)
1 parent 0d502ac commit bf69bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
14221422
expect.fail('it must fail with no tls');
14231423
} catch (e) {
14241424
//Expect an error indicating TLS handshake failed.
1425-
expect(e.originalError.message).to.include('before secure TLS connection');
1425+
expect(e.originalError.message).to.match(/before secure TLS connection|handshake/);
14261426
}
14271427
});
14281428

0 commit comments

Comments
 (0)