fix(benchpress): explicitly require navigation to finish before continuing
This commit is contained in:
parent
923d90bce8
commit
8b28e99373
@ -32,15 +32,16 @@ function runBenchmark(config) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
var url = encodeURI(config.url + '?' + urlParams.join('&'));
|
var url = encodeURI(config.url + '?' + urlParams.join('&'));
|
||||||
browser.get(url);
|
return browser.get(url).then(function() {
|
||||||
return benchpressRunner.sample({
|
benchpressRunner.sample({
|
||||||
id: config.id,
|
id: config.id,
|
||||||
execute: config.work,
|
execute: config.work,
|
||||||
prepare: config.prepare,
|
prepare: config.prepare,
|
||||||
microMetrics: config.microMetrics,
|
microMetrics: config.microMetrics,
|
||||||
bindings: [
|
bindings: [
|
||||||
benchpress.bind(benchpress.Options.SAMPLE_DESCRIPTION).toValue(description)
|
benchpress.bind(benchpress.Options.SAMPLE_DESCRIPTION).toValue(description)
|
||||||
]
|
]
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user