Commit cb13b03
committed
test: refactor tests to use NATS container and update worker endpoints
- Add additional NATS ports for clustering and monitoring in `setupNatsContainer`
- Initialize context and setup NATS container in `TestCustomFuncAndWait`
- Update worker address to use endpoint in `TestCustomFuncAndWait`
- Initialize context and setup NATS container in `TestEnqueueJobAfterShutdown`
- Update worker address to use endpoint in `TestEnqueueJobAfterShutdown`
- Initialize context and setup NATS container in `TestJobReachTimeout`
- Update worker address to use endpoint in `TestJobReachTimeout`
- Initialize context and setup NATS container in `TestCancelJobAfterShutdown`
- Update worker address to use endpoint in `TestCancelJobAfterShutdown`
- Initialize context and setup NATS container in `TestGoroutineLeak`
- Update worker address to use endpoint in `TestGoroutineLeak`
- Initialize context and setup NATS container in `TestGoroutinePanic`
- Update worker address to use endpoint in `TestGoroutinePanic`
- Initialize context and setup NATS container in `TestReQueueTaskInWorkerBeforeShutdown`
- Update worker address to use endpoint in `TestReQueueTaskInWorkerBeforeShutdown`
Signed-off-by: appleboy <[email protected]>1 parent 372c48b commit cb13b03
1 file changed
+35
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
126 | | - | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
150 | 157 | | |
151 | 158 | | |
152 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
153 | 163 | | |
154 | 164 | | |
155 | 165 | | |
156 | 166 | | |
157 | | - | |
| 167 | + | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
| |||
172 | 182 | | |
173 | 183 | | |
174 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
175 | 188 | | |
176 | 189 | | |
177 | 190 | | |
178 | 191 | | |
179 | | - | |
| 192 | + | |
180 | 193 | | |
181 | 194 | | |
182 | 195 | | |
| |||
212 | 225 | | |
213 | 226 | | |
214 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
215 | 231 | | |
216 | 232 | | |
217 | 233 | | |
218 | 234 | | |
219 | | - | |
| 235 | + | |
220 | 236 | | |
221 | 237 | | |
222 | 238 | | |
| |||
253 | 269 | | |
254 | 270 | | |
255 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
256 | 275 | | |
257 | 276 | | |
258 | 277 | | |
259 | 278 | | |
260 | | - | |
| 279 | + | |
261 | 280 | | |
262 | 281 | | |
263 | 282 | | |
| |||
299 | 318 | | |
300 | 319 | | |
301 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
302 | 324 | | |
303 | 325 | | |
304 | 326 | | |
305 | 327 | | |
306 | | - | |
| 328 | + | |
307 | 329 | | |
308 | 330 | | |
309 | 331 | | |
| |||
325 | 347 | | |
326 | 348 | | |
327 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
328 | 353 | | |
329 | 354 | | |
330 | 355 | | |
331 | 356 | | |
332 | | - | |
| 357 | + | |
333 | 358 | | |
334 | 359 | | |
335 | 360 | | |
| |||
0 commit comments