Skip to content

Commit f0cd822

Browse files
author
diego Dupin
committed
misc - test reliability improvement
1 parent d4fc232 commit f0cd822

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

benchmarks/benchs/bench_do.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const assert = require('assert');
22

33
module.exports.title = 'do ? using callback';
4-
module.exports.displaySql = 'do ?';
4+
module.exports.displaySql = 'do ? using callback';
55
module.exports.promise = false;
66
module.exports.benchFct = function (conn, deferred) {
77
conn.query('do ?', ['' + Math.floor(Math.random() * 50000000)], (err, res) => {

test/integration/test-ssl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ describe('ssl', function () {
157157
conn.end();
158158
throw new Error('Must have thrown an exception !');
159159
} catch (err) {
160-
assert(err.message.includes('self signed certificate'), err.message);
160+
assert(
161+
err.message.includes('self signed certificate') ||
162+
err.message.includes('unable to get local issuer certificate'),
163+
err.message
164+
);
161165
}
162166
});
163167

0 commit comments

Comments
 (0)