-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: verify grpc expect body #223
Conversation
pkg/runner/grpc_test.go
Outdated
Body: "{}", | ||
}, | ||
Expect: atest.Response{ | ||
Body: getJSONOrCache("unaryneq", &testsrv.HelloReply{ |
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.
Actually, I didn't quite understand why using getJSONOrCache
. I guess you only want to convert a struct into JSON string. A cached function might return an unpredictable result.
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.
ok i will do a bypass here
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.
LGTM. The CI errors should not be caused by this PR. But I prefer to fix it in a new PR before merging this PR.
Signed-off-by: Ink33 <[email protected]>
Signed-off-by: Ink33 <[email protected]>
b648a24
to
87982ae
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
The previous error caused by the Go version. Some third-pary library need 1.19. So I just upgrade it to. The current error caused by the GitHub Action secret cannot be accessed. |
fix always pass when verify grpc expect body