Skip to content

Commit fc94eef

Browse files
feonsgireeshpunathil
authored andcommitted
test:replace common.fixturesDir with commonfixtures
PR-URL: #15832 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Ruben Bridgewater <ruben@bridgewater.de>
1 parent 20f8a22 commit fc94eef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-tls-net-connect-prefer-path.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34

45
// This tests that both tls and net will ignore host and port if path is
56
// provided.
@@ -28,8 +29,8 @@ function mkServer(lib, tcp, cb) {
2829
const args = [handler];
2930
if (lib === tls) {
3031
args.unshift({
31-
cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`),
32-
key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`)
32+
cert: fixtures.readSync('test_cert.pem'),
33+
key: fixtures.readSync('test_key.pem')
3334
});
3435
}
3536
const server = lib.createServer(...args);

0 commit comments

Comments
 (0)