Skip to content

Commit a0a0d4b

Browse files
wip. check test
1 parent 3263b5d commit a0a0d4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/devextreme-cli/testing/nextjs-server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getPidByPort(port) {
1313

1414
function killProcByPid(pid) {
1515
try {
16-
execSync(`kill -9 ${pid}`, { stdio: 'ignore' });
16+
execSync(`kill -15 ${pid}`, { stdio: 'ignore' });
1717
} catch(e) {}
1818
}
1919

@@ -41,12 +41,12 @@ module.exports = class NextJsServer {
4141
// this.proc.kill('SIGTERM');
4242
// await new Promise((resolve) => setTimeout(resolve, 1000));
4343
// this.proc.kill('SIGKILL');
44-
44+
console.log('-----NEXTJS SERVER-STOP---process.kill->', !!this.proc, process.platform);
4545
process.kill(-this.proc.pid, 'SIGKILL');
4646
await new Promise((resolve) => setTimeout(resolve, 1000));
4747
}
4848

49-
if(process.platform === 'win32') {
49+
if(process.platform === 'win32' || 1) {
5050
return;
5151
}
5252

0 commit comments

Comments
 (0)