Skip to content

Commit 257bf12

Browse files
committed
Merge branch '1.0' into 1.1
2 parents c2a2f41 + 1bb8d23 commit 257bf12

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/internal/tls.test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ var isLocalHost = require("../../lib/v1/internal/util").isLocalHost;
2626
describe('trust-signed-certificates', function() {
2727

2828
var driver;
29-
29+
var log = console.log
30+
beforeEach(function() {
31+
console.log = function () {}; // To mute deprecation message in test output
32+
})
3033
it('should reject unknown certificates', function(done) {
3134
// Assuming we only run this test on NodeJS
3235
if( !NodeChannel.available ) {
@@ -88,16 +91,13 @@ describe('trust-signed-certificates', function() {
8891
if( driver ) {
8992
driver.close();
9093
}
94+
console.log = log;
9195
});
9296
});
9397

9498
describe('trust-custom-ca-signed-certificates', function() {
9599

96100
var driver;
97-
var log = console.log
98-
beforeEach(function() {
99-
console.log = function () {}; // To mute deprecation message in test output
100-
})
101101
it('should reject unknown certificates', function(done) {
102102
// Assuming we only run this test on NodeJS
103103
if( !NodeChannel.available ) {
@@ -141,7 +141,6 @@ describe('trust-custom-ca-signed-certificates', function() {
141141
if( driver ) {
142142
driver.close();
143143
}
144-
console.log = log;
145144
});
146145
});
147146

0 commit comments

Comments
 (0)