Skip to content

Commit c2a2f41

Browse files
committed
Merge branch '1.0' into 1.1
2 parents b184b4c + 89fddb4 commit c2a2f41

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/internal/tls.test.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ describe('trust-signed-certificates', function() {
9494
describe('trust-custom-ca-signed-certificates', function() {
9595

9696
var driver;
97-
97+
var log = console.log
98+
beforeEach(function() {
99+
console.log = function () {}; // To mute deprecation message in test output
100+
})
98101
it('should reject unknown certificates', function(done) {
99102
// Assuming we only run this test on NodeJS
100103
if( !NodeChannel.available ) {
@@ -138,14 +141,15 @@ describe('trust-custom-ca-signed-certificates', function() {
138141
if( driver ) {
139142
driver.close();
140143
}
144+
console.log = log;
141145
});
142146
});
143147

144148
describe('trust-system-ca-signed-certificates', function() {
145149

146150
var driver;
147151

148-
fit('should reject unknown certificates', function(done) {
152+
it('should reject unknown certificates', function(done) {
149153
// Assuming we only run this test on NodeJS
150154
if( !NodeChannel.available ) {
151155
done();
@@ -327,7 +331,7 @@ describe('trust-on-first-use', function() {
327331
done();
328332
}, 1000);
329333
});
330-
334+
331335
it('should should give helpful error if database cert does not match stored certificate', function(done) {
332336
// Assuming we only run this test on NodeJS with TOFU support
333337
if( !hasFeature("trust_on_first_use") ) {

0 commit comments

Comments
 (0)