Skip to content

Commit

Permalink
chore: rerun tasks after the util handle has been evaluated (#8962)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Sep 15, 2022
1 parent ac9929d commit 42cd6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/IsolatedWorld.ts
Expand Up @@ -159,7 +159,6 @@ export class IsolatedWorld {
this.#injectPuppeteerUtil(context);
this.#ctxBindings.clear();
this.#context.resolve(context);
this.#taskManager.rerunAll();
}

async #injectPuppeteerUtil(context: ExecutionContext): Promise<void> {
Expand All @@ -173,6 +172,7 @@ export class IsolatedWorld {
})()`
)) as JSHandle<PuppeteerUtil>
);
this.#taskManager.rerunAll();
} catch (error: unknown) {
debugError(error);
}
Expand Down

0 comments on commit 42cd6d0

Please sign in to comment.