Skip to content

Commit 8ee0693

Browse files
committed
fix(e2e): assign serve result to outer-scoped variables in longRunningApplication
1 parent 00f15ca commit 8ee0693

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

integration/models/longRunningApplication.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ export const longRunningApplication = (params: LongRunningApplicationParams) =>
106106
throw error;
107107
}
108108
try {
109-
const { port, serverUrl, pid } = await app.serve({ detached: true });
110-
stateFile.addLongRunningApp({ port, serverUrl, pid, id, appDir: app.appDir, env: params.env.toJson() });
109+
const serveResult = await app.serve({ detached: true });
110+
port = serveResult.port;
111+
serverUrl = serveResult.serverUrl;
112+
pid = serveResult.pid;
113+
appDir = app.appDir;
114+
stateFile.addLongRunningApp({ port, serverUrl, pid, id, appDir, env: params.env.toJson() });
111115
} catch (error) {
112116
console.error('Error during app serve:', error);
113117
throw error;

0 commit comments

Comments
 (0)