From 50f120eaacfb0ee4df02bff0f30312e7ccc8714b Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 5 Dec 2017 09:22:14 -0800 Subject: [PATCH] test: fix flaky test-benchmark-util Allow for zero iterations on benchmarks with a short duration. PR-URL: https://github.com/nodejs/node/pull/17473 Reviewed-By: James M Snell Reviewed-By: Evan Lucas Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson Reviewed-By: Khaidi Chu --- test/parallel/test-benchmark-util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-benchmark-util.js b/test/parallel/test-benchmark-util.js index 25140f8fe7ebc1..9a6ae370b7d312 100644 --- a/test/parallel/test-benchmark-util.js +++ b/test/parallel/test-benchmark-util.js @@ -11,4 +11,5 @@ runBenchmark('util', 'n=1', 'option=none', 'type=', - 'version=native']); + 'version=native'], + { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });