Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@juliaogris
Copy link
Member

Refactor server_test.go to be independent from internal/client package and
less brittle by avoiding sting comparison in favour of comparing map values
for certain keys for headers and trailers. In a follow up commit we will
upgrade protoc-gen-go and libraries which made these tests fail, so we are
fixing them first and independently.

Remove client package once server_test.go doesn't depend on it anymore. Roughly
include it in cmd/client/main.go, as private methods on config/cli struct
type.

Refactor server_test.go to be independent from internal/client package and less
brittle by avoiding sting comparison in favour of comparing map values for
certain keys for header and trailers. In a follow up commit we will upgrade
protoc-gen-go and libraries which made these tests fail, so we are fixing them
first and independently.
Remove client package now that server_test.go doesn't depend on it anymore.
Roughly include it in cmd/client/main.go, as private methods on config/cli
struct type.
Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍀 This looks so much nicer. Thank you very much!

@juliaogris juliaogris merged commit f6d2f47 into master Feb 6, 2025
2 checks passed
@juliaogris juliaogris deleted the rework-server-test branch February 6, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants