Skip to content

Commit 3eb7375

Browse files
mblebrianc
authored andcommitted
Expand test to check for expected and unexpected errors
1 parent 7dd3b50 commit 3eb7375

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 && tc.errorMessage) {
77+
if (tc.errorMessage !== null || err) {
7878
assert.equal(err.message, tc.errorMessage)
7979
}
8080
con.end()

0 commit comments

Comments
 (0)