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

Commit 25ce6567 by Sascha Gehlich

Fix mariadb test

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