Skip to content

Commit f05b311

Browse files
wip. test checking
1 parent 83307e8 commit f05b311

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ module.exports = class NextJsServer {
2525
await new Promise((resolve) => setTimeout(resolve, 1000));
2626
this.proc.kill('SIGKILL');
2727
await new Promise((resolve) => setTimeout(resolve, 1000));
28+
}
2829

29-
if(process.platform !== 'win32') {
30-
console.log(`-----NEXTJS SERVER-exec kill for port ${this.port} ---->`);
31-
try {
32-
execSync(`lsof -i :${this.port} -t | xargs kill -9`, { stdio: 'ignore' });
33-
await new Promise((resolve) => setTimeout(resolve, 1000));
34-
} catch(e) {
35-
console.log(`NextJs server on port ${this.port} not found. It's OK`);
36-
this.proc = null;
37-
}
30+
if(process.platform !== 'win32') {
31+
console.log(`-----NEXTJS SERVER-exec kill for port ${this.port} ---->`);
32+
try {
33+
execSync(`lsof -i :${this.port} -t | xargs kill -9`, { stdio: 'ignore' });
34+
await new Promise((resolve) => setTimeout(resolve, 1000));
35+
} catch(e) {
36+
console.log(`NextJs server on port ${this.port} not found. It's OK`);
37+
this.proc = null;
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)