Skip to content

Commit

Permalink
[misc] ssl test correction
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Feb 14, 2024
1 parent bab0283 commit fa1a067
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/integration/test-ssl.js
Expand Up @@ -575,14 +575,15 @@ describe('ssl', function () {
});

it('Mutual authentication without providing client certificate', async function () {
if (isMaxscale() || process.env.srv === 'skysql-ha') this.skip();
if (!sslEnable) this.skip();
if (!ca) this.skip();
let conn = null;
try {
conn = await base.createConnection({
user: 'X509testUser',
password: 'éà@d684SQpl¨^',
host: 'mariadb.example.com',
host: '192.168.3.19',
ssl: { ca: ca },
port: sslPort
});
Expand All @@ -592,9 +593,7 @@ describe('ssl', function () {
if (conn) {
await validConnection(conn);
conn.end();
if (!isMaxscale() && process.env.srv !== 'skysql-ha') {
throw new Error('Must have thrown an exception !');
}
throw new Error('Must have thrown an exception !');
}
});

Expand Down

0 comments on commit fa1a067

Please sign in to comment.