Skip to content

Commit 10a540a

Browse files
authored
fix: Missing await for destroying current ctx (#18624)
1 parent 804ae14 commit 10a540a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function e2ePluginSetup (projectRoot: string, on: Cypress.PluginEve
5151
async withCtx (obj: WithCtxObj) {
5252
// Ensure we spin up a completely isolated server/state for each test
5353
if (obj.activeTestId !== currentTestId) {
54-
ctx?.destroy()
54+
await ctx?.destroy()
5555
currentTestId = obj.activeTestId
5656
testState = {};
5757
({ serverPortPromise, ctx } = runInternalServer({

0 commit comments

Comments
 (0)