Skip to content

Commit 1cd910b

Browse files
Jem BezooyenMylesBorins
Jem Bezooyen
authored andcommitted
test: make use of common/fixtures.fixturesDir
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: #15815 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2ffce82 commit 1cd910b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/pummel/test-crypto-timing-safe-equal-benchmarks.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ if (!common.hasCrypto)
66
if (!common.enoughTestMem)
77
common.skip('memory-intensive test');
88

9+
const fixtures = require('../common/fixtures');
910
const assert = require('assert');
1011
const crypto = require('crypto');
1112

1213
const BENCHMARK_FUNC_PATH =
13-
`${common.fixturesDir}/crypto-timing-safe-equal-benchmark-func`;
14+
`${fixtures.fixturesDir}/crypto-timing-safe-equal-benchmark-func`;
1415
function runOneBenchmark(...args) {
1516
const benchmarkFunc = require(BENCHMARK_FUNC_PATH);
1617
const result = benchmarkFunc(...args);

0 commit comments

Comments
 (0)