()
| 270 | } |
| 271 | |
| 272 | async function stopLauncher() { |
| 273 | if (!launcherChild || launcherChild.exitCode !== null) { |
| 274 | return |
| 275 | } |
| 276 | |
| 277 | launcherChild.kill('SIGTERM') |
| 278 | await new Promise(resolve => { |
| 279 | launcherChild.once('exit', resolve) |
| 280 | setTimeout(resolve, 3000) |
| 281 | }) |
| 282 | launcherChild = null |
| 283 | launcherReadyPromise = null |
| 284 | } |
| 285 | |
| 286 | async function ensureLauncherReady() { |
| 287 | if (launcherReadyPromise) { |
no outgoing calls
no test coverage detected