From 57590cd097f6d60d7ae6d60814ae03bf623bd18e Mon Sep 17 00:00:00 2001 From: Jem Bezooyen Date: Fri, 6 Oct 2017 09:36:35 -0700 Subject: [PATCH] test: make use of common/fixtures.fixturesDir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The common/fixtures module provides convenience methods for working with files in the test/fixtures directory. Make use of the `fixturesDir` value from module rather than value from common. - Replace `common.fixtures` with `fixtures.fixturesDir` PR-URL: https://github.com/nodejs/node/pull/15815 Reviewed-By: Ryan Graham Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- test/pummel/test-crypto-timing-safe-equal-benchmarks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/pummel/test-crypto-timing-safe-equal-benchmarks.js b/test/pummel/test-crypto-timing-safe-equal-benchmarks.js index 4aad5ed20cbe39..0592b9a0d63674 100644 --- a/test/pummel/test-crypto-timing-safe-equal-benchmarks.js +++ b/test/pummel/test-crypto-timing-safe-equal-benchmarks.js @@ -6,11 +6,12 @@ if (!common.hasCrypto) if (!common.enoughTestMem) common.skip('memory-intensive test'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const crypto = require('crypto'); const BENCHMARK_FUNC_PATH = - `${common.fixturesDir}/crypto-timing-safe-equal-benchmark-func`; + `${fixtures.fixturesDir}/crypto-timing-safe-equal-benchmark-func`; function runOneBenchmark(...args) { const benchmarkFunc = require(BENCHMARK_FUNC_PATH); const result = benchmarkFunc(...args);