(attempts = 40)
| 307 | }; |
| 308 | |
| 309 | const waitSshDown = async (attempts = 40): Promise<void> => { |
| 310 | for (let i = 0; i < attempts; i++) { |
| 311 | if ((await ssh("echo up").catch(() => ({ code: 1 }) as SshResult)).code !== 0) return; |
| 312 | await sleep(3000); |
| 313 | } |
| 314 | // never observed down — caller's boot-time check is the backstop. |
| 315 | }; |
| 316 | |
| 317 | const bootTime = async (): Promise<string> => |
| 318 | os === "windows" |