@@ -384,7 +384,9 @@ async function testAppServe(pluginName: string, appDir: string) {
|
||||
} finally {
|
||||
// Kill entire process group, otherwise we'll end up with hanging serve processes
|
||||
if (browser) await browser.close();
|
||||
killTree(startApp.pid);
|
||||
await new Promise<void>((res, rej) =>
|
||||
killTree(startApp.pid, err => (err ? rej(err) : res())),
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -463,7 +465,9 @@ async function testBackendStart(appDir: string, isPostgres: boolean) {
|
||||
} finally {
|
||||
print('Stopping the child process');
|
||||
// Kill entire process group, otherwise we'll end up with hanging serve processes
|
||||
killTree(child.pid);
|
||||
await new Promise<void>((res, rej) =>
|
||||
killTree(child.pid, err => (err ? rej(err) : res())),
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user