Skip to content

Commit 89fddb4

Browse files
committed
Run all tests, not just one.
And mute deprecation message in test output.
1 parent 925e0f9 commit 89fddb4

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
@@ -93,7 +93,10 @@ describe('trust-signed-certificates', function() {
9393
describe('trust-custom-ca-signed-certificates', function() {
9494

9595
var driver;
96-
96+
var log = console.log
97+
beforeEach(function() {
98+
console.log = function () {}; // To mute deprecation message in test output
99+
})
97100
it('should reject unknown certificates', function(done) {
98101
// Assuming we only run this test on NodeJS
99102
if( !NodeChannel.available ) {
@@ -137,14 +140,15 @@ describe('trust-custom-ca-signed-certificates', function() {
137140
if( driver ) {
138141
driver.close();
139142
}
143+
console.log = log;
140144
});
141145
});
142146

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

145149
var driver;
146150

147-
fit('should reject unknown certificates', function(done) {
151+
it('should reject unknown certificates', function(done) {
148152
// Assuming we only run this test on NodeJS
149153
if( !NodeChannel.available ) {
150154
done();
@@ -326,7 +330,7 @@ describe('trust-on-first-use', function() {
326330
done();
327331
}, 1000);
328332
});
329-
333+
330334
it('should should give helpful error if database cert does not match stored certificate', function(done) {
331335
// Assuming we only run this test on NodeJS with TOFU support
332336
if( !hasFeature("trust_on_first_use") ) {

0 commit comments

Comments
 (0)