Commit abfcb9e
committed
chore: update 'wait_for_sidekiq' function & use it more
Make the `timeout` argument in `wait_for_sidekiq` be approximately the
seconds desired. Previously it was an iteration count so depending on
what the `step` argument was set to the time before the function would
time-out would vary.
Simpler for users to treat `timeout` as the (approximate) number of
seconds before `wait_for_sidekiq` will timeout.
Return new `WaitSidekiq` object which contains statistics from the
`wait_for_sidekiq` run.
Use `wait_for_sidekiq` in our fixtures defined in `conftest.py` after
they delete resources. This will help increase the odds that we don't
have stray resources left-around when the next test starts. On my
local system the run-time of py_func_v4 went from 7m50s to 7m59s.1 parent d65ce36 commit abfcb9e
File tree
4 files changed
+79
-19
lines changed- tests/functional
- api
4 files changed
+79
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
129 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| |||
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | | - | |
160 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| |||
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | | - | |
200 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | | - | |
| 118 | + | |
110 | 119 | | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
115 | 130 | | |
116 | | - | |
117 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
118 | 140 | | |
119 | 141 | | |
120 | 142 | | |
121 | 143 | | |
122 | 144 | | |
123 | 145 | | |
124 | 146 | | |
125 | | - | |
126 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
127 | 155 | | |
128 | 156 | | |
129 | 157 | | |
| |||
210 | 238 | | |
211 | 239 | | |
212 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
213 | 245 | | |
214 | 246 | | |
215 | 247 | | |
| |||
226 | 258 | | |
227 | 259 | | |
228 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
229 | 265 | | |
230 | 266 | | |
231 | 267 | | |
| |||
249 | 285 | | |
250 | 286 | | |
251 | 287 | | |
252 | | - | |
253 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
254 | 292 | | |
255 | 293 | | |
256 | 294 | | |
| |||
274 | 312 | | |
275 | 313 | | |
276 | 314 | | |
277 | | - | |
278 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
279 | 319 | | |
280 | 320 | | |
281 | 321 | | |
| |||
297 | 337 | | |
298 | 338 | | |
299 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
300 | 344 | | |
301 | 345 | | |
302 | 346 | | |
| |||
349 | 393 | | |
350 | 394 | | |
351 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
352 | 400 | | |
353 | 401 | | |
354 | 402 | | |
| |||
0 commit comments