Commit 32c84e2
Fix flaky test_big_file test by increasing client timeout (#1324)
Summary:
The test was failing with SocketTimeout because the pywatchman client in WatchmanInstance.start() used the default 1 second timeout, which is too short on resource-constrained systems (e.g., Windows CI running tests with 2GB/4GB files).
Changes:
- Increase client connection timeout from 1s to up to 10s
- Catch SocketTimeout in addition to SocketConnectError so the startup loop can retry on timeout
Pull Request resolved: #1324
Reviewed By: genevievehelsel
Differential Revision: D90087810
fbshipit-source-id: 4ad3c33229b0b2a2cff89bb4a820d2b85f4332381 parent 4fda9e4 commit 32c84e2
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
221 | 227 | | |
222 | 228 | | |
223 | | - | |
| 229 | + | |
224 | 230 | | |
225 | 231 | | |
226 | 232 | | |
| |||
0 commit comments