Repository navigation
Commit f71d7e9
authored
Fix flaky ConnectionFailTest: restore fd limit in SetUp (#612)
ConnectionFailTest lowers the process soft fd limit (RLIMIT_NOFILE) in a
loop and never restores it, so a test leaves the limit as low as ~8 for
the next one. The next test's SetUp() then makes an HTTP request to
create the partitioned topic, and curl can intermittently fail to open a
socket (res: -1) when the previous client's async connection teardown
still holds file descriptors.
Restore the soft limit to the hard limit in SetUp() before making the
HTTP request.1 parent 0f13c1b commit f71d7e9
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments