@artilleryio/int-core 2.2.0-4e83456 → 2.2.0-563696c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -713,7 +713,17 @@ HttpEngine.prototype.step = function step(requestSpec, ee, opts) {
713
713
  .catch((gotErr) => {
714
714
  // TODO: Handle the error properly with run hooks
715
715
  debug(gotErr);
716
- return callback(gotErr, context);
716
+ runOnErrorHooks(
717
+ onErrorHandlers,
718
+ config.processor,
719
+ gotErr,
720
+ requestParams,
721
+ context,
722
+ ee,
723
+ function (asyncErr) {
724
+ return callback(gotErr, context);
725
+ }
726
+ );
717
727
  });
718
728
  }
719
729
  ); // eachSeries
package/lib/runner.js CHANGED
@@ -327,8 +327,13 @@ function runScenario(script, metrics, runState, contextVars, options) {
327
327
  if (options.scenarioName) {
328
328
  let foundIndex;
329
329
  const foundScenario = script.scenarios.filter((scenario, index) => {
330
- foundIndex = index;
331
- return new RegExp(options.scenarioName).test(scenario.name);
330
+ const hasScenario = new RegExp(options.scenarioName).test(scenario.name);
331
+
332
+ if (hasScenario) {
333
+ foundIndex = index;
334
+ }
335
+
336
+ return hasScenario;
332
337
  });
333
338
 
334
339
  if (foundScenario?.length === 0) {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@artilleryio/int-core",
3
- "version": "2.2.0-4e83456",
3
+ "version": "2.2.0-563696c",
4
4
  "main": "./index.js",
5
5
  "license": "MPL-2.0",
6
6
  "dependencies": {
7
- "@artilleryio/int-commons": "2.0.2-4e83456",
7
+ "@artilleryio/int-commons": "2.0.2-563696c",
8
8
  "@artilleryio/sketches-js": "^2.1.1",
9
9
  "agentkeepalive": "^4.1.0",
10
10
  "arrivals": "^2.1.2",