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(test): deflake SubscriptionPartitionProcessorImplTest #768

merged 1 commit into from
Jul 28, 2021


Copy link

Wait for 10ms for the PartitionProcessor to fail after failing the underlying subscriber.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #767 ☕️

@manuelmenzella-google manuelmenzella-google requested a review from a team as a code owner July 27, 2021 21:49
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 27, 2021
@product-auto-label product-auto-label bot added the api: pubsublite Issues related to the googleapis/java-pubsublite API. label Jul 27, 2021
@manuelmenzella-google manuelmenzella-google changed the title Fix flakiness in SubscriptionPartitionProcessorImplTest fix: deflake SubscriptionPartitionProcessorImplTest Jul 27, 2021
The test case expects the processor to fail immediately (with deadline of zero) after failing the underlying subscriber. However, the actual failing is done asynchronously. Waiting for a little bit removes the flakiness.
@anguillanneuf anguillanneuf changed the title fix: deflake SubscriptionPartitionProcessorImplTest fix(test): deflake SubscriptionPartitionProcessorImplTest Jul 28, 2021
@anguillanneuf anguillanneuf merged commit c34e430 into master Jul 28, 2021
@anguillanneuf anguillanneuf deleted the fix-flakiness branch July 28, 2021 13:50
gcf-merge-on-green bot pushed a commit that referenced this pull request Jul 29, 2021
🤖 I have created a release \*beep\* \*boop\*
## [0.18.0]( (2021-07-29)

### Features

* split versions.txt to independently release the Beam IO ([#766]( ([b6e48dc](
* Update CloudPubsubChecks to CloudPubsubTransforms ([#730]( ([2e10924](

### Bug Fixes

* deflake SubscriptionPartitionProcessorImplTest ([#768]( ([c34e430](
* remove DlqProvider which should remain in the beam repo and bump beam version ([#772]( ([a540c1d](

### Dependencies

* define Beam version as a Maven property in pom ([#714]( ([69106fe](
* update dependency to v2-rev20210617-1.32.1 ([#773]( ([e904392](
* Version bump cloud BOM and remove no longer needed dependency management settings ([#777]( ([1cd23cb](

This PR was generated with [Release Please]( See [documentation](
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
api: pubsublite Issues related to the googleapis/java-pubsublite API. cla: yes This human has signed the Contributor License Agreement.
None yet

Successfully merging this pull request may close these issues.

Target SubscriptionPartitionProcessorImplTest is flaky
2 participants