Fix test failures — closes #132

This commit is contained in:
Rich Harris
2018-03-03 14:33:47 -05:00
committed by GitHub
parent d9cb572271
commit a96fb93bfb
5 changed files with 1591 additions and 559 deletions

View File

@@ -102,10 +102,11 @@ function run(env) {
});
after(() => {
proc.kill();
// give a chance to clean up
return new Promise(fulfil => setTimeout(fulfil, 500));
return new Promise(fulfil => {
proc.on('exit', fulfil);
proc.kill();
});
});
beforeEach(() => {