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

Commit 4e37847f by Mick Hansen

fix auth test expectations

1 parent 761ed191
Showing with 6 additions and 15 deletions
...@@ -114,21 +114,12 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() { ...@@ -114,21 +114,12 @@ describe(Support.getTestDialectTeaser('Sequelize'), function() {
.sequelizeWithInvalidConnection .sequelizeWithInvalidConnection
.authenticate() .authenticate()
.complete(function(err, result) { .complete(function(err, result) {
if (dialect === 'postgres') { expect(
expect( err.message.match(/connect ECONNREFUSED/) ||
err.message.match(/connect ECONNREFUSED/) || err.message.match(/invalid port number/) ||
err.message.match(/invalid port number/) || err.message.match(/RangeError: Port should be > 0 and < 65536/) ||
err.message.match(/RangeError: Port should be > 0 and < 65536/) err.message.match(/ConnectionError: Login failed for user/)
).to.be.ok; ).to.be.ok;
} else if (dialect === 'mssql') {
expect(
err.message.match(/ConnectionError: Login failed for user/) ||
err.message.match(/RangeError: Port should be > 0 and < 65536/)
).to.be.ok;
} else {
expect(err.message).to.match(/connect ECONNREFUSED/);
}
done(); done();
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!