Commit 81c45f1
authored
Fix BackoffSupervisorSpec final stop message test race condition (#8032)
The test was flaky because:
1. It killed the child, waited for supervisor to restart it
2. Then sent the final stop message
3. Expected supervisor to terminate
But the supervisor only terminates when the child stops AFTER the
final stop message was received. The test needed to kill the child
after sending the stop message.
Fix: Wait for the restarted child (c2), send the stop message,
then kill c2. This matches the expected behavior where the supervisor
terminates because it received the final stop flag before the child
stopped.1 parent 99d7ea7 commit 81c45f1
1 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
502 | 503 | | |
503 | 504 | | |
504 | | - | |
505 | | - | |
506 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
507 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
508 | 527 | | |
509 | 528 | | |
510 | 529 | | |
| |||
0 commit comments