aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http-default-port.js
diff options
context:
space:
mode:
authorBryan English <bryan@bryanenglish.com>2016-05-26 09:43:09 -0700
committerBryan English <bryan@bryanenglish.com>2016-06-06 15:28:52 -0700
commitcc2a88a2f32bab8a14209713c19aaf14d7652a45 (patch)
treee072ffc6124cbe20fd96059fb14da790665f396e /test/parallel/test-http-default-port.js
parent843d58fcbbec09cde5633e0bc5ab025d0a640204 (diff)
downloadandroid-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.tar.gz
android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.tar.bz2
android-node-v8-cc2a88a2f32bab8a14209713c19aaf14d7652a45.zip
test: use common.fixturesDir almost everywhere
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: https://github.com/nodejs/node/pull/6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-http-default-port.js')
-rw-r--r--test/parallel/test-http-default-port.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-default-port.js b/test/parallel/test-http-default-port.js
index c0a1ed50e3..5fe7c00c10 100644
--- a/test/parallel/test-http-default-port.js
+++ b/test/parallel/test-http-default-port.js
@@ -7,7 +7,7 @@ const assert = require('assert');
const hostExpect = 'localhost';
const fs = require('fs');
const path = require('path');
-const fixtures = path.resolve(__dirname, '../fixtures/keys');
+const fixtures = path.join(common.fixturesDir, 'keys');
const options = {
key: fs.readFileSync(fixtures + '/agent1-key.pem'),
cert: fs.readFileSync(fixtures + '/agent1-cert.pem')