Commit 34d838a
committed
gh-157161: Fix test_rollover_based_on_st_birthtime_only on slow machines
The rotated file is named after the creation time of the log file, but
the test only looked for it within a fixed 5 seconds before the end of
the test. On a slow CI runner the test took 6 seconds, so the file was
found nowhere and the test failed although the rollover was correct.
Derive the search window from the time the test actually took.1 parent 0b4c7da commit 34d838a
2 files changed
Lines changed: 11 additions & 4 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6752 | 6752 | | |
6753 | 6753 | | |
6754 | 6754 | | |
| 6755 | + | |
6755 | 6756 | | |
6756 | 6757 | | |
6757 | 6758 | | |
| |||
6764 | 6765 | | |
6765 | 6766 | | |
6766 | 6767 | | |
6767 | | - | |
| 6768 | + | |
| 6769 | + | |
| 6770 | + | |
| 6771 | + | |
6768 | 6772 | | |
6769 | 6773 | | |
6770 | | - | |
6771 | | - | |
| 6774 | + | |
| 6775 | + | |
6772 | 6776 | | |
6773 | 6777 | | |
6774 | 6778 | | |
6775 | 6779 | | |
6776 | 6780 | | |
6777 | 6781 | | |
6778 | | - | |
| 6782 | + | |
6779 | 6783 | | |
6780 | 6784 | | |
6781 | 6785 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments