From 0b5b2be88a91c05ea9b243ab3e2229fda81d9a21 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Fri, 21 Feb 2025 19:17:15 -0500 Subject: [PATCH] Update workerMain.ts Signed-off-by: Alex Schwartz --- packages/playwright/src/worker/workerMain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright/src/worker/workerMain.ts b/packages/playwright/src/worker/workerMain.ts index 7c89ac8526..140a39a20d 100644 --- a/packages/playwright/src/worker/workerMain.ts +++ b/packages/playwright/src/worker/workerMain.ts @@ -394,7 +394,7 @@ export class WorkerMain extends ProcessRunner { const afterHooksTimeout = calculateMaxTimeout(this._project.project.timeout, testInfo.timeout); const afterHooksSlot = { timeout: afterHooksTimeout, elapsed: 0 }; - const FAILURE_AND_SkIP_NOW = testInfo._isFailure() && this._config.config.skipAfterAnyFailure; + const FAILURE_AND_SkIP_NOW = testInfo._isFailure() && this._config.skipAfterAnyFailure; await testInfo._runAsStage({ title: 'After Hooks', stepInfo: { category: 'hook' } }, async () => { let firstAfterHooksError: Error | undefined;