fix(benchpress): add filter for when cloud config is not present
This commit is contained in:
parent
d0333e4376
commit
39977bd3c2
|
@ -22,7 +22,9 @@ module.exports = {
|
|||
|
||||
function runBenchmark(config, workCallback) {
|
||||
var sampleId = nodeUuid.v1();
|
||||
var reporters = config.reporters.map(function(Class) {
|
||||
var reporters = config.reporters.filter(function(Class) {
|
||||
return !!Class;
|
||||
}).map(function(Class) {
|
||||
return new Class(sampleId, config);
|
||||
});
|
||||
var scriptMetricIndex = -1;
|
||||
|
|
Loading…
Reference in New Issue