- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit44948bc
committed
fix: ensure embedded-postgres state is wiped between retries
Retries were previously added when starting embedded postgres to mitigate portallocation conflicts (we can't use an ephemeral port). Retries alone seeminglydid not fix the test flakes. A new failure mode appeared on the retries: timingout connecting to the database.When a port discovery error occurrs, embedded-postgres does not create thedatabase. If the data directory exists on the next attempt, embedded-postgreswill assume the database has already been created. This seems to cause thetimeout error. Wipe all state between retries to ensure attempts execute thesame logic that creates the database.1 parentddcc841 commit44948bc
1 file changed
+18
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2143 | 2143 | | |
2144 | 2144 | | |
2145 | 2145 | | |
2146 | | - | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
2147 | 2153 | | |
2148 | 2154 | | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
2149 | 2158 | | |
2150 | 2159 | | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | 2160 | | |
2157 | 2161 | | |
2158 | 2162 | | |
2159 | 2163 | | |
2160 | 2164 | | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2161 | 2173 | | |
2162 | 2174 | | |
2163 | 2175 | | |
| |||
2204 | 2216 | | |
2205 | 2217 | | |
2206 | 2218 | | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | 2219 | | |
2213 | 2220 | | |
2214 | 2221 | | |
| |||
0 commit comments
Comments
(0)