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

fix: verify grpc expect body #223

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Conversation

Ink-33
Copy link
Contributor

@Ink-33 Ink-33 commented Oct 6, 2023

fix always pass when verify grpc expect body

Body: "{}",
},
Expect: atest.Response{
Body: getJSONOrCache("unaryneq", &testsrv.HelloReply{
Copy link
Owner

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.

Copy link
Contributor Author

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

Copy link
Owner

@LinuxSuRen LinuxSuRen left a 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.

@LinuxSuRen LinuxSuRen added bug Something isn't working glcc Special for https://www.gitlink.org.cn/glcc backend labels Oct 9, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.3% 1.3% Duplication

@LinuxSuRen
Copy link
Owner

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.
Any way, this PR could go ahead.

@LinuxSuRen LinuxSuRen merged commit 90b4b07 into LinuxSuRen:master Oct 9, 2023
7 of 9 checks passed
LinuxSuRen pushed a commit that referenced this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working glcc Special for https://www.gitlink.org.cn/glcc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants