Commit 5534379
committed
Fix connection leak, tighten socket-dir assertion, fix Windows start
- assert_executor_start_stop: capture conn returned by retry() and call
conn.close() so the readiness backend session is released promptly
instead of waiting for GC.
- test_executor_with_special_chars_in_all_paths: strengthen the Unix
unix_socket_directories assertion to include the actual socket_dir
path value, so a missing or mis-quoted path fails the test.
- PostgreSQLExecutor.start(): on Windows, run pg_ctl start -w
synchronously via shell=True rather than delegating to mirakuru's
subprocess polling. pg_ctl exits as soon as the server is ready, so
mirakuru's check_subprocess loop always sees a dead launcher process
and times out; bypassing it removes the 60-second timeout failure
seen in test_noproc_cached_version and related Windows CI jobs.
Made-with: Cursor1 parent 60fa1b9 commit 5534379
2 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
179 | 193 | | |
180 | 194 | | |
181 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments