From e15bf2d4dd5a0b56ffbd3477e3922b5066120210 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 20 Mar 2025 09:47:11 -0500 Subject: [PATCH] fix(tests): Avoid error after tests. In newer versions of wdio this is handled, but now in case of error at this level the test is missing from the result xmls. --- tests/wdio.conf.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts index dd674bbe4e..b2cdc3279a 100644 --- a/tests/wdio.conf.ts +++ b/tests/wdio.conf.ts @@ -221,11 +221,8 @@ export const config: WebdriverIO.MultiremoteConfig = { after() { const { ctx }: any = global; - if (ctx?.webhooksProxy) { - ctx.webhooksProxy.disconnect(); - } - - ctx.keepAlive?.forEach(clearInterval); + ctx?.webhooksProxy?.disconnect(); + ctx?.keepAlive?.forEach(clearInterval); }, beforeSession(c, capabilities, specs, cid) {