From b2f4acc5d1ad1924f89cd950f1003648ec10717b Mon Sep 17 00:00:00 2001
From: Rich Trott <rtrott@gmail.com>
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 <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
---
 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 });