From cc5dc5081107ebf1aa281b030ff92af27446f77b Mon Sep 17 00:00:00 2001 From: Oleksandr_Halichenko Date: Thu, 18 Jan 2024 17:58:42 +0200 Subject: [PATCH] fix finishLaunch sync issue --- src/reporter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reporter.ts b/src/reporter.ts index e27fd47..c3a5720 100644 --- a/src/reporter.ts +++ b/src/reporter.ts @@ -241,6 +241,7 @@ export class Reporter extends WDIOReporter { ...(this.customLaunchStatus && { status: this.customLaunchStatus }), }); promiseErrorHandler(promise); + await promise; this.tempLaunchId = null; this.customLaunchStatus = null; } catch (e) {