Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove intermediate calls and use fixtures.readKey directly.
As per review feedback, there is already a function in common.fixture
that handles the logic of reading key files. Switch to use that.
  • Loading branch information
UnrememberMe committed Oct 6, 2017
commit 0437fd43f8827295b03559f5d3099fbf68e21d1a
8 changes: 1 addition & 7 deletions test/parallel/test-https-strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,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(fixtures.fixturesDir, 'keys', fname);
}

function read(fname) {
return fs.readFileSync(file(fname));
return fixtures.readKey(fname);
}

// key1 is signed by ca1.
Expand Down