- Notifications
You must be signed in to change notification settings - Fork1k
Commit7eb4119
authored
test: fix TestSSHServer_ClosesStdin to handle non-atomic write (#19174)
fixescoder/internal#863We read an output file in a loop, but this could lead to races where the other process has created the file but not written, or a partial write in progress. Fix is to retry if the content is shorter than we expect.1 parentb0ba798 commit7eb4119
1 file changed
+15
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
416 |
| - | |
| 416 | + | |
417 | 417 |
| |
| 418 | + | |
418 | 419 |
| |
419 | 420 |
| |
420 | 421 |
| |
| |||
469 | 470 |
| |
470 | 471 |
| |
471 | 472 |
| |
472 |
| - | |
| 473 | + | |
| 474 | + | |
473 | 475 |
| |
474 | 476 |
| |
| 477 | + | |
475 | 478 |
| |
476 | 479 |
| |
477 |
| - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
478 | 489 |
| |
479 | 490 |
| |
480 |
| - | |
| 491 | + | |
481 | 492 |
| |
482 | 493 |
| |
483 | 494 |
| |
|
0 commit comments
Comments
(0)