We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de82db7 commit bbdbf8bCopy full SHA for bbdbf8b
test/parallel/test-https-byteswritten.js
@@ -1,15 +1,15 @@
1
'use strict';
2
const common = require('../common');
3
+const fixtures = require('../common/fixtures');
4
if (!common.hasCrypto)
5
common.skip('missing crypto');
6
7
const assert = require('assert');
-const fs = require('fs');
8
const https = require('https');
9
10
const options = {
11
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
12
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
+ cert: fixtures.readKey('agent1-cert.pem')
13
};
14
15
const body = 'hello world\n';
0 commit comments