diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index 1cb49fc64bfcc7..611e7ea5c00e4d 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -8,15 +9,9 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const assert = require('assert'); const https = require('https'); -const fs = require('fs'); -const path = require('path'); - -function file(fname) { - return path.resolve(common.fixturesDir, 'keys', fname); -} function read(fname) { - return fs.readFileSync(file(fname)); + return fixtures.readKey(fname); } // key1 is signed by ca1.