mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Expand test to check for expected and unexpected errors
This commit is contained in:
parent
7dd3b50e41
commit
3eb73751f5
@ -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 && tc.errorMessage) {
|
||||
if (tc.errorMessage !== null || err) {
|
||||
assert.equal(err.message, tc.errorMessage)
|
||||
}
|
||||
con.end()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user