forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit54a16df
committed
Make the pg_rewind regression tests more robust on slow systems.
There were a couple of hard-coded sleeps in the tests: to wait for standbyto catch up with master, and to wait for promotion with "pg_ctl promote"to complete. Instead of a fixed, hard-coded sleep, poll the server with aquery once a second. This isn't ideal either, and I wish we had a bettersolution for real-world applications too, but this should fix theimmediate problem.Patch by Michael Paquier, with some editing by me.1 parentcef939c commit54a16df
1 file changed
+41
-5
lines changedLines changed: 41 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
128 | 159 |
| |
129 | 160 |
| |
130 | 161 |
| |
| |||
185 | 216 |
| |
186 | 217 |
| |
187 | 218 |
| |
188 |
| - | |
| 219 | + | |
189 | 220 |
| |
190 | 221 |
| |
191 | 222 |
| |
192 | 223 |
| |
193 | 224 |
| |
194 | 225 |
| |
195 | 226 |
| |
196 |
| - | |
197 |
| - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
198 | 232 |
| |
199 | 233 |
| |
200 | 234 |
| |
| |||
203 | 237 |
| |
204 | 238 |
| |
205 | 239 |
| |
206 |
| - | |
| 240 | + | |
| 241 | + | |
207 | 242 |
| |
208 |
| - | |
| 243 | + | |
| 244 | + | |
209 | 245 |
| |
210 | 246 |
| |
211 | 247 |
| |
|
0 commit comments
Comments
(0)