-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Added unit tests in pkg/es/config #5819
Added unit tests in pkg/es/config #5819
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to add a goleak test, like this: https://github.com/jaegertracing/jaeger/blob/4220d62cf3e2f18356c8504666ff43a1d838c241/pkg/version/package_test.go
Nit: avoid using description like |
3490525
to
51713cd
Compare
looks like your new tests are leaking goroutines. Make sure you always close ES clients properly. |
Signed-off-by: nabil salah <[email protected]>
d546eaa
to
360fa26
Compare
done now |
Thanks! |
## Which problem is this PR solving? Part of: jaegertracing#5068 ## Description of the changes - This commit adds tests for the `pkg/es/config` package. ## How was this change tested? - `make test` ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` Signed-off-by: nabil salah <[email protected]> Signed-off-by: Jared Tan <[email protected]>
## Which problem is this PR solving? Part of: jaegertracing#5068 ## Description of the changes - This commit adds tests for the `pkg/es/config` package. ## How was this change tested? - `make test` ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` Signed-off-by: nabil salah <[email protected]> Signed-off-by: Jared Tan <[email protected]>
## Which problem is this PR solving? Part of: jaegertracing#5068 ## Description of the changes - This commit adds tests for the `pkg/es/config` package. ## How was this change tested? - `make test` ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` Signed-off-by: nabil salah <[email protected]> Signed-off-by: Jared Tan <[email protected]>
Which problem is this PR solving?
Part of: #5068
Description of the changes
pkg/es/config
package.How was this change tested?
make test
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test