Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix make test fail by init sidercar test #256 #259

Merged

Conversation

hustjieke
Copy link
Contributor

@hustjieke hustjieke commented Oct 12, 2021

What type of PR is this?

Which issue(s) this PR fixes?

Fixes #256

What this PR does?

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

Special notes for your reviewer?

@hustjieke hustjieke force-pushed the feature_fix_init_sidecar_test_fail_#256 branch from 6f473ae to b4a26bb Compare October 12, 2021 03:51
@hustjieke hustjieke marked this pull request as ready for review October 12, 2021 03:52
@hustjieke hustjieke self-assigned this Oct 12, 2021
@hustjieke hustjieke added the bug Something isn't working label Oct 12, 2021
@hustjieke hustjieke added this to the v2.1.0 milestone Oct 12, 2021
[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: radondb#116
First meet in commit: bd4fbd8
First error in commit: 46c0ce7

[testcase]
cluster/container/init_sidecar_test.go
@hustjieke hustjieke force-pushed the feature_fix_init_sidecar_test_fail_#256 branch from b4a26bb to 8695281 Compare October 12, 2021 08:46
@hustjieke
Copy link
Contributor Author

@acekingke LGTM.

@andyli029 andyli029 merged commit 767f476 into radondb:main Oct 12, 2021
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this pull request Aug 17, 2022
…r_test_fail_#256

test: fix make test fail by init sidercar test radondb#256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] make test failed.
4 participants