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
chore: Enable govet linter and fix reported errors #170
chore: Enable govet linter and fix reported errors #170
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
ok to test |
@ghislainbourgeois, FYI. |
54e863c
to
10f384c
Compare
Fixed |
ngap/ngap_test.go
Outdated
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 are these changes needed? These changes are not due to enabling govet
, correct?
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.
Yes and no, the changes made in metrics/kafka.go
made this test fail because of a nil pointer. It was working before because the default value was an empty struct and a method could be dispatched, but the default value of a pointer is nil.
@ghislainbourgeois, did you have a chance to run an end-to-end test using the changes from this PR? I am asking this because I am running a test using AiaB (w/ gnbsim) and the test fails as shown below:
|
I did not test with AiaB, I will investigate. |
Well, you do not have to use AiaB, but my point was to check whether you had tested the changes using an end-to-end test (e.g., AiaB, OnRamp, etc.) |
I had not yet no. I am able to reproduce the issue, and it seems to be because the mutex is uninitialized. I will push a fix. |
082e74e
to
6b6c0dd
Compare
I pushed a fix that I was able to confirm working end-to-end with gnbsim. |
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.
+1 (tested changes with AiaB)
Enables the
govet
linter and fix reported errors.