Skip to content

Commit

Permalink
[CONJS-217] merge from 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Aug 22, 2022
1 parent 0f28491 commit e8807e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/integration/test-auth-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,8 @@ describe('authentication plugin', () => {
.catch(done);
});

it('cachingsha256 authentication plugin', function (done) {
if (!rsaPublicKey || shareConn.info.isMariaDB() || !shareConn.info.hasMinVersion(8, 0, 0))
this.skip();
it('cachingsha256 authentication plugin', async function () {
if (!rsaPublicKey || shareConn.info.isMariaDB() || !shareConn.info.hasMinVersion(8, 0, 0)) this.skip();

const self = this;

Expand Down Expand Up @@ -553,8 +552,7 @@ describe('authentication plugin', () => {
});
conn.end();
} catch (err) {
if (err.message.includes('caching_sha2_password authentication plugin require node 11.6+'))
self.skip();
if (err.message.includes('caching_sha2_password authentication plugin require node 11.6+')) self.skip();
throw err;
}
const conn = await base.createConnection({
Expand Down

0 comments on commit e8807e9

Please sign in to comment.