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
3 changes: 2 additions & 1 deletion test/parallel/test-https-strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
Copy link
Copy Markdown
Member

@lpinca lpinca Oct 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can you please move this after the common.hasCrypto check?

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

Expand All @@ -33,7 +34,7 @@ const fs = require('fs');
const path = require('path');

function file(fname) {
return path.resolve(common.fixturesDir, 'keys', fname);
return path.resolve(fixtures.fixturesDir, 'keys', fname);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the path.resolve() itself could be replaced by fixtures.path('keys', fname).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it looks like the file() wrapper is only used by read(), which is only being used for keys. The read('agent1-key.pem') calls below can probably be replaced directly with fixtures.readKey('agent1-key.pem').

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

}

function read(fname) {
Expand Down