Skip to content

Commit e1089e2

Browse files
author
Bob Clewell
committed
test: Updated test to use readKey rather than fixturesDir
1 parent a0bc9b2 commit e1089e2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-https-set-timeout-server.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,21 @@
2121

2222
'use strict';
2323
const common = require('../common');
24-
const fixtures = require('../common/fixtures');
2524

2625
if (!common.hasCrypto)
2726
common.skip('missing crypto');
2827

2928
const assert = require('assert');
30-
const fs = require('fs');
29+
const fixtures = require('../common/fixtures');
3130
const https = require('https');
3231
const http = require('http');
3332
const tls = require('tls');
3433

3534
const tests = [];
3635

3736
const serverOptions = {
38-
key: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-key.pem`),
39-
cert: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-cert.pem`)
37+
key: fixtures.readKey('agent1-key.pem'),
38+
cert: fixtures.readKey('agent1-cert.pem')
4039
};
4140

4241
function test(fn) {

0 commit comments

Comments
 (0)