mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Add guard to test to not check errors for empty error messages
This commit is contained in:
parent
5d32be4a90
commit
7dd3b50e41
@ -74,7 +74,7 @@ for (var i = 0; i < SSLNegotiationPacketTests.length; i++) {
|
||||
var con = new Connection({ssl: true})
|
||||
con.connect(7778, 'localhost')
|
||||
assert.emits(con, tc.responseType, function (err) {
|
||||
if (err) {
|
||||
if (err && tc.errorMessage) {
|
||||
assert.equal(err.message, tc.errorMessage)
|
||||
}
|
||||
con.end()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user