summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-close-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-close-error.js')
-rw-r--r--test/parallel/test-tls-close-error.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/parallel/test-tls-close-error.js b/test/parallel/test-tls-close-error.js
index 978f765950..9973adde12 100644
--- a/test/parallel/test-tls-close-error.js
+++ b/test/parallel/test-tls-close-error.js
@@ -1,14 +1,11 @@
'use strict';
const common = require('../common');
-const assert = require('assert');
-
-if (!common.hasCrypto) {
+if (!common.hasCrypto)
common.skip('missing crypto');
- return;
-}
-const tls = require('tls');
+const assert = require('assert');
+const tls = require('tls');
const fs = require('fs');
const server = tls.createServer({