Skip to content

Commit

Permalink
test: fix flakyness with yes.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed May 4, 2017
1 parent 4677766 commit 7e8f7c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion benchmark/child_process/child-process-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ function main(conf) {
});

setTimeout(function() {
child.kill();
if (process.platform === 'win32') {
// Sometimes there's a yes.exe process left hanging around on Windows...
child_process.execSync(`taskkill /f /t /pid ${child.pid}`);
} else {
child.kill();
}
const gbits = (bytes * 8) / (1024 * 1024 * 1024);
bench.end(gbits);
}, dur * 1000);
Expand Down

0 comments on commit 7e8f7c7

Please sign in to comment.