Skip to content

Commit

Permalink
test(NODE-5033): fix handshake error message check (#3558)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Feb 7, 2023
1 parent 0d502ac commit bf69bd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
expect.fail('it must fail with no tls');
} catch (e) {
//Expect an error indicating TLS handshake failed.
expect(e.originalError.message).to.include('before secure TLS connection');
expect(e.originalError.message).to.match(/before secure TLS connection|handshake/);
}
});

Expand Down

0 comments on commit bf69bd6

Please sign in to comment.