From c5578170a0b919d2320bfd9a51cd3e47f885e768 Mon Sep 17 00:00:00 2001 From: Dan Aprahamian Date: Thu, 29 Mar 2018 16:30:49 -0400 Subject: [PATCH] fix(driverBench): driverBench has default options object now --- test/mongoBench/runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/mongoBench/runner.js b/test/mongoBench/runner.js index f1eb66dc59..4e3200fe54 100644 --- a/test/mongoBench/runner.js +++ b/test/mongoBench/runner.js @@ -68,6 +68,7 @@ const Suite = require('./suite'); class Runner { constructor(options) { + options = options || {}; this.minExecutionTime = options.minExecutionTime || CONSTANTS.DEFAULT_MIN_EXECUTION_TIME; this.maxExecutionTime = options.maxExecutionTime || CONSTANTS.DEFAULT_MAX_EXECUTION_TIME; this.minExecutionCount = options.minExecutionCount || CONSTANTS.DEFAULT_MIN_EXECUTION_COUNT;