From 186161e61cf7ba530f3d2fca25f2d82798174cf8 Mon Sep 17 00:00:00 2001 From: Edoardo Pirovano <edoardo.pirovano@gmail.com> Date: Tue, 27 Jul 2021 18:45:40 +0100 Subject: [PATCH] Fix failing test --- lib/toolrunner-error-catcher.test.js | 10 +++++----- lib/toolrunner-error-catcher.test.js.map | 2 +- src/toolrunner-error-catcher.test.ts | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/toolrunner-error-catcher.test.js b/lib/toolrunner-error-catcher.test.js index c504b2da0..f468041b0 100644 --- a/lib/toolrunner-error-catcher.test.js +++ b/lib/toolrunner-error-catcher.test.js @@ -42,7 +42,7 @@ ava_1.default("regex matchers are applied to stdout for non-zero exit code", asy ]; await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunner_error_catcher_1.toolrunnerErrorCatcher("node", testArgs, matchers), { instanceOf: Error, @@ -56,7 +56,7 @@ ava_1.default("regex matchers are applied to stderr for non-zero exit code", asy ]; await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunner_error_catcher_1.toolrunnerErrorCatcher("node", testArgs, matchers), { instanceOf: Error, @@ -72,7 +72,7 @@ ava_1.default("matcher returns correct error message when multiple matchers defi ]; await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunner_error_catcher_1.toolrunnerErrorCatcher("node", testArgs, matchers), { instanceOf: Error, @@ -88,7 +88,7 @@ ava_1.default("matcher returns first match to regex when multiple matches", asyn ]; await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunner_error_catcher_1.toolrunnerErrorCatcher("node", testArgs, matchers), { instanceOf: Error, @@ -106,7 +106,7 @@ ava_1.default("exit code matchers are applied", async (t) => { ]; await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 123", + message: /failed with exit code 123/, }); await t.throwsAsync(toolrunner_error_catcher_1.toolrunnerErrorCatcher("node", testArgs, matchers), { instanceOf: Error, diff --git a/lib/toolrunner-error-catcher.test.js.map b/lib/toolrunner-error-catcher.test.js.map index efcd6de8c..c088ee0cb 100644 --- a/lib/toolrunner-error-catcher.test.js.map +++ b/lib/toolrunner-error-catcher.test.js.map @@ -1 +1 @@ -{"version":3,"file":"toolrunner-error-catcher.test.js","sourceRoot":"","sources":["../src/toolrunner-error-catcher.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AACtC,8CAAuB;AAGvB,mDAA6C;AAC7C,yEAAoE;AAEpE,0BAAU,CAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,8CAA8C,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC/D,MAAM,QAAQ,GAAG,cAAc,CAC7B,qBAAqB,EACrB,qBAAqB,EACrB,EAAE,EACF,CAAC,CACF,CAAC;IAEF,MAAM,QAAQ,GAAmB;QAC/B,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE;KAC3E,CAAC;IAEF,CAAC,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAElD,CAAC,CAAC,SAAS,CAAC,MAAM,iDAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,6DAA6D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9E,MAAM,QAAQ,GAAG,cAAc,CA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D,CAAC,CAAC,CAAC;AAEH,SAAS,cAAc,CACrB,cAAsB,EACtB,cAAsB,EACtB,mBAA4B,EAC5B,eAAwB;IAExB,IAAI,OAAO,GAAG,EAAE,CAAC;IAEjB,IAAI,cAAc;QAAE,OAAO,IAAI,gBAAgB,cAAc,KAAK,CAAC;IACnE,IAAI,cAAc;QAAE,OAAO,IAAI,kBAAkB,cAAc,KAAK,CAAC;IAErE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IAEvE,IAAI,mBAAmB;QACrB,OAAO,IAAI,oBAAoB,mBAAmB,KAAK,CAAC;IAC1D,IAAI,eAAe;QAAE,OAAO,IAAI,sBAAsB,eAAe,GAAG,CAAC;IAEzE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"toolrunner-error-catcher.test.js","sourceRoot":"","sources":["../src/toolrunner-error-catcher.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AACtC,8CAAuB;AAGvB,mDAA6C;AAC7C,yEAAoE;AAEpE,0BAAU,CAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,8CAA8C,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC/D,MAAM,QAAQ,GAAG,cAAc,CAC7B,qBAAqB,EACrB,qBAAqB,EACrB,EAAE,EACF,CAAC,CACF,CAAC;IAEF,MAAM,QAAQ,GAAmB;QAC/B,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE;KAC3E,CAAC;IAEF,CAAC,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAElD,CAAC,CAAC,SAAS,CAAC,MAAM,iDAAsB,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ACjD,SAAS;KACV,CAAC,EACF,CAAC,CACF,CAAC;IAEF,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,GAAG,cAAc,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,GAAG,cAAc,IAAI,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC;AAEH,SAAS,cAAc,CACrB,cAAsB,EACtB,cAAsB,EACtB,mBAA4B,EAC5B,eAAwB;IAExB,IAAI,OAAO,GAAG,EAAE,CAAC;IAEjB,IAAI,cAAc;QAAE,OAAO,IAAI,gBAAgB,cAAc,KAAK,CAAC;IACnE,IAAI,cAAc;QAAE,OAAO,IAAI,kBAAkB,cAAc,KAAK,CAAC;IAErE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IAEvE,IAAI,mBAAmB;QACrB,OAAO,IAAI,oBAAoB,mBAAmB,KAAK,CAAC;IAC1D,IAAI,eAAe;QAAE,OAAO,IAAI,sBAAsB,eAAe,GAAG,CAAC;IAEzE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/src/toolrunner-error-catcher.test.ts b/src/toolrunner-error-catcher.test.ts index 700e01ecc..377c193fa 100644 --- a/src/toolrunner-error-catcher.test.ts +++ b/src/toolrunner-error-catcher.test.ts @@ -33,7 +33,7 @@ test("regex matchers are applied to stdout for non-zero exit code", async (t) => await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunnerErrorCatcher("node", testArgs, matchers), { @@ -56,7 +56,7 @@ test("regex matchers are applied to stderr for non-zero exit code", async (t) => await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunnerErrorCatcher("node", testArgs, matchers), { @@ -81,7 +81,7 @@ test("matcher returns correct error message when multiple matchers defined", asy await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunnerErrorCatcher("node", testArgs, matchers), { @@ -106,7 +106,7 @@ test("matcher returns first match to regex when multiple matches", async (t) => await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 1", + message: /failed with exit code 1/, }); await t.throwsAsync(toolrunnerErrorCatcher("node", testArgs, matchers), { @@ -133,7 +133,7 @@ test("exit code matchers are applied", async (t) => { await t.throwsAsync(exec.exec("node", testArgs), { instanceOf: Error, - message: "The process 'node' failed with exit code 123", + message: /failed with exit code 123/, }); await t.throwsAsync(toolrunnerErrorCatcher("node", testArgs, matchers), {