Skip to content

Commit 4a39a27

Browse files
wip. test checking
1 parent c93f45a commit 4a39a27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = class NextJsServer {
2323
this.proc.kill('SIGTERM');
2424
await new Promise((resolve) => setTimeout(resolve, 1000));
2525
this.proc.kill('SIGKILL');
26+
await new Promise((resolve) => setTimeout(resolve, 1000));
2627

2728
if(process.platform !== 'win32') {
2829
console.log(`-----NEXTJS SERVER-exec kill for port ${this.port} ---->`);
@@ -31,10 +32,9 @@ module.exports = class NextJsServer {
3132
await new Promise((resolve) => setTimeout(resolve, 1000));
3233
} catch(e) {
3334
console.log(`NextJs server on port ${this.port} not found. It's OK`);
35+
this.proc = null;
3436
}
3537
}
36-
37-
this.proc = null;
3838
}
3939
}
4040
};

0 commit comments

Comments
 (0)