nosql-tests icon indicating copy to clipboard operation
nosql-tests copied to clipboard

benchmark.js issue when try to execute a single task

Open SirChokolate opened this issue 8 years ago • 0 comments

Issue description:

When you try to execute a single task, the benchmark.js return next message: `[root@localhost nosql-tests]# node benchmark mongodb -a 127.0.0.1 -t singeRead /home/dsuser/nosql-tests/benchmark.js:93 tests = tests.split(',').map(trim); ^

ReferenceError: trim is not defined at Object. (/home/dsuser/nosql-tests/benchmark.js:93:32) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:393:7) at startup (bootstrap_node.js:150:9) at bootstrap_node.js:508:3`

Solution:

Instead of this code: tests = tests.split(',').map(trim); I use this: tests = tests.split(',').map(function (val) { return val; });

SirChokolate avatar Apr 27 '17 15:04 SirChokolate