Commit 8695281
committed
test: fix make test fail by init sidercar test #256
[summary]
fix bug of make test fail:
```
--- FAIL: TestGetInitSidecarEnvVar (0.00s)
init_sidecar_test.go:297:
Error Trace: init_sidecar_test.go:297
Error: Not equal:
expected: []v1.EnvVar{v1.EnvVar{Name:"POD_HOSTNAME", Value:"", ValueFrom:(*v1.EnvVarSource)(0x29f1540)}, v1.EnvVar{Name:"NAMESPACE", Value:"", ValueFrom:(*v1.EnvVarSource)(nil)},
...
...
actual : []v1.EnvVar{v1.EnvVar{Name:"CONTAINER_TYPE", Value:"init-sidecar", ValueFrom:(*v1.EnvVarSource)(nil)}, v1.EnvVar{Name:"POD_HOSTNAME", Value:"", ValueFrom:(*v1.EnvVarSource)(0xc0004a87c0)},
...
...
```
related issue: #116
First meet in commit: bd4fbd8
First error in commit: 46c0ce7
[testcase]
cluster/container/init_sidecar_test.go1 parent 7e85f4f commit 8695281
1 file changed
+71
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
307 | | - | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
315 | 385 | | |
316 | 386 | | |
317 | 387 | | |
| |||
0 commit comments