Skip to content

Commit 7dd3b50

Browse files
mblebrianc
authored andcommitted
Add guard to test to not check errors for empty error messages
1 parent 5d32be4 commit 7dd3b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/connection/error-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ for (var i = 0; i < SSLNegotiationPacketTests.length; i++) {
7474
var con = new Connection({ssl: true})
7575
con.connect(7778, 'localhost')
7676
assert.emits(con, tc.responseType, function (err) {
77-
if (err) {
77+
if (err && tc.errorMessage) {
7878
assert.equal(err.message, tc.errorMessage)
7979
}
8080
con.end()

0 commit comments

Comments
 (0)