From 27bece006cfd42375bff3de05c0cfa5f850c4281 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Tue, 8 Mar 2022 16:32:45 +0100 Subject: [PATCH] update error tests snapshots --- .../server/browsers/chromium/driver_factory/index.ts | 4 +++- .../reporting_and_security/network_policy.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts b/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts index 7906602dcc710..c5f1c1c2f8a85 100644 --- a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts +++ b/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts @@ -162,7 +162,9 @@ export class HeadlessChromiumDriverFactory { }, }); } catch (err) { - observer.error(new errors.FailedToSpawnBrowserError(err.message)); + observer.error( + new errors.FailedToSpawnBrowserError(`Error spawning Chromium browser! ${err}`) + ); return; } diff --git a/x-pack/test/reporting_api_integration/reporting_and_security/network_policy.ts b/x-pack/test/reporting_api_integration/reporting_and_security/network_policy.ts index 68899e65528ed..212b3f6de97c4 100644 --- a/x-pack/test/reporting_api_integration/reporting_and_security/network_policy.ts +++ b/x-pack/test/reporting_api_integration/reporting_and_security/network_policy.ts @@ -36,7 +36,7 @@ export default function ({ getService }: FtrProviderContext) { await retry.tryForTime(120000, async () => { const { body } = await supertest.get(downloadPath).expect(500); expect(body.message).to.match( - /Reporting generation failed: ReportingError\(code: unknown_error\) "/ + /Reporting generation failed: ReportingError\(code: browser_unexpectedly_closed_error\) "/ ); }); });