From e47e9b2ddbc2a573dc783d49374cce9bf7269823 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 24 Dec 2017 14:10:20 -0800 Subject: [PATCH] test: fix flaky test-benchmark-fs test-benchmark-fs uses common.tmpDir without first insuring it exists by calling common.refreshTmpDir(). Add that function call. PR-URL: https://github.com/nodejs/node/pull/17853 Reviewed-By: Jon Moss Reviewed-By: Richard Lau --- test/parallel/test-benchmark-fs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-benchmark-fs.js b/test/parallel/test-benchmark-fs.js index 415eb1896b69a8..bf6bf3580d50cd 100644 --- a/test/parallel/test-benchmark-fs.js +++ b/test/parallel/test-benchmark-fs.js @@ -3,6 +3,8 @@ const common = require('../common'); const runBenchmark = require('../common/benchmark'); +common.refreshTmpDir(); + runBenchmark('fs', [ 'n=1', 'size=1',