-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Replace goleak.VerifyTestMain with testutils.VerifyGoLeaks #5108
Conversation
Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5108 +/- ##
==========================================
- Coverage 95.59% 95.56% -0.04%
==========================================
Files 317 317
Lines 18284 18284
==========================================
- Hits 17479 17473 -6
- Misses 647 651 +4
- Partials 158 160 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 can also add the uber/goleak to disallowed packages in .golangci.yml
, similar to disallow-crossdock
pkg/gogocodec/codec_test.go
Outdated
@@ -11,7 +11,6 @@ | |||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
|
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.
what's with the changes in this file?
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.
I was resolving conflicts but forgot that I needed to remove this change.
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
pkg/gogocodec/codec_test.go
Outdated
s2 := &model.Span{} | ||
|
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.
why these changes?
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.
Because while I was doing these changes, I was two commits behind the main. I was manually resolving conflicts by comparing changes. But by mistake, I might have forgotten.
removing it now
Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
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.
Thanks!
Which problem is this PR solving?
Description of the changes
testutils.VerifyGoLeaks
as satisfactory.goleak.VerifyTestMain
withtestutils.VerifyGoLeaks
.How was this change tested?
make test
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test