From e87d75b1b2e783a400e63db64231bad07dcf6b54 Mon Sep 17 00:00:00 2001 From: Lance Barlaan Date: Fri, 6 Oct 2017 09:54:41 -0700 Subject: [PATCH 1/4] Refactored --- test/parallel/test-tls-inception.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index 267fa391a73e20..fd5158a2a9d753 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -21,6 +21,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -33,8 +34,8 @@ const path = require('path'); const net = require('net'); const options = { - key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), - cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) + key: fs.readFileSync(fixtures.path('test_key.pem')), + cert: fs.readFileSync(fixtures.path('test_cert.pem')) }; const body = 'A'.repeat(40000); From f66f37247ce2a09bb2205e0a8b1b00374a5eeda0 Mon Sep 17 00:00:00 2001 From: Lance Barlaan Date: Fri, 6 Oct 2017 10:02:18 -0700 Subject: [PATCH 2/4] test-tls-inspection: removed unused path import --- test/parallel/test-tls-inception.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index fd5158a2a9d753..765aeb00183f67 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -30,7 +30,6 @@ const assert = require('assert'); const tls = require('tls'); const fs = require('fs'); -const path = require('path'); const net = require('net'); const options = { From d3388abe8e99eafd3135d437d612fa7ba9029a44 Mon Sep 17 00:00:00 2001 From: Lance Barlaan Date: Wed, 18 Oct 2017 12:42:48 -0700 Subject: [PATCH 3/4] test-tls-inspection: used readSync instead --- test/parallel/test-tls-inception.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index 765aeb00183f67..f89f214a2ef7f8 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -33,8 +33,8 @@ const fs = require('fs'); const net = require('net'); const options = { - key: fs.readFileSync(fixtures.path('test_key.pem')), - cert: fs.readFileSync(fixtures.path('test_cert.pem')) + key: fixtures.readSync('test_key.pem'), + cert: fixtures.readSync('test_cert.pem') }; const body = 'A'.repeat(40000); From a31d35c183acb6f06125216ed369b310df13d2ae Mon Sep 17 00:00:00 2001 From: Lance Barlaan Date: Wed, 18 Oct 2017 14:35:54 -0700 Subject: [PATCH 4/4] test-tls-inspection: removed unused fs import --- test/parallel/test-tls-inception.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index f89f214a2ef7f8..f28f92373c5500 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -29,7 +29,6 @@ if (!common.hasCrypto) const assert = require('assert'); const tls = require('tls'); -const fs = require('fs'); const net = require('net'); const options = {