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

test(pubsub): make config checks specific to field #4956

Merged
merged 9 commits into from Oct 7, 2021

Conversation

hongalex
Copy link
Member

@hongalex hongalex commented Oct 7, 2021

Discovered in #4953, many of our config equality checks (with testutil.Equal or testutil.Diff) are overly broad in comparisons. This was uncovered when adding an unexported field to Topic and SubscriptionConfigs, which causes these comparisons to fail. This can be mitigated using cmpopts.IgnoreUnexported(TopicConfig{}), but is better addressed by making the tests check specifically against the field they are modifying.

@hongalex hongalex requested review from a team as code owners October 7, 2021 00:16
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Oct 7, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 7, 2021
…est-fix-config-checks

Change-Id: I86d49a96cc22a8022acfc72a37f0bbc27b522286
Change-Id: Ifc79fba03ee13583fa97cffb28f2f439061a2b69
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

LGTM

@hongalex hongalex merged commit 9a86fbe into googleapis:master Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants