Skip to content

Commit

Permalink
test: fix flaky test-benchmark-fs
Browse files Browse the repository at this point in the history
test-benchmark-fs uses common.tmpDir without first insuring it exists by
calling common.refreshTmpDir(). Add that function call.

PR-URL: #17853
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
Trott authored and MylesBorins committed Jan 9, 2018
1 parent 3b2d8cb commit fea5d08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-benchmark-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
const common = require('../common');
const runBenchmark = require('../common/benchmark');

common.refreshTmpDir();

runBenchmark('fs', [
'n=1',
'size=1',
Expand Down

0 comments on commit fea5d08

Please sign in to comment.