Commit 1671ea2
committed
fix(test): stabilize ssh.process.replaced flake
After the 999->888 takeover, the 888 monitor would eventually fail
network reads, call processLost, then searchForProcess would find
888 again and emit ssh.process.recovered (same-PID rediscovery).
On slow CI runners that race won the negative assertion at
sshProcess.test.ts:469. Return [] from find after the takeover so
no rediscovery is possible.1 parent ea88cd7 commit 1671ea2
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
| |||
456 | 459 | | |
457 | 460 | | |
458 | 461 | | |
459 | | - | |
460 | | - | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| |||
0 commit comments