不要怂,就是干,撸起袖子干!

Commit a6943a1a by Sascha Gehlich

Fixed test for postgres specific errors

1 parent 5fdb4fc5
Showing with 5 additions and 1 deletions
...@@ -80,7 +80,11 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -80,7 +80,11 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
.sequelizeWithInvalidConnection .sequelizeWithInvalidConnection
.authenticate() .authenticate()
.complete(function(err, result) { .complete(function(err, result) {
expect(err.message).to.match(/Failed to authenticate/) if (dialect !== 'postgres') {
expect(err.message).to.match(/Failed to authenticate/)
} else {
expect(err.message).to.match(/invalid port number/)
}
done() done()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!