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): use background context for nack test #6563

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

hongalex
Copy link
Member

Sometimes a nacked message in the subscription test will cause the message to be redelivered right away. Since the context is cancelled after the first nack, this causes a race condition with the test. The simple solution is to just use a different context that is not affected by the by calling cancel().

Closes #6561

@hongalex hongalex requested review from a team as code owners August 25, 2022 01:06
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: pubsub Issues related to the Pub/Sub API. labels Aug 25, 2022
@hongalex hongalex merged commit e8955d9 into googleapis:main Aug 25, 2022
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. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub: TestExactlyOnceDelivery_NackSuccess failed
2 participants