Skip to content

Commit aa7ffb8

Browse files
committed
properly terminate cli servers
1 parent c938820 commit aa7ffb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/CLI.spec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,12 @@ describe('execution', () => {
209209
const binPath = path.resolve(__dirname, '../bin/parse-server');
210210
let childProcess;
211211

212-
afterEach(async () => {
212+
afterEach(async done => {
213213
if (childProcess) {
214+
childProcess.on('close', () => {
215+
childProcess = undefined;
216+
done();
217+
});
214218
childProcess.kill();
215219
}
216220
});

0 commit comments

Comments
 (0)