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: wait longer while waiting for expected spq #8973

Merged
merged 3 commits into from
Apr 5, 2022
Merged

Conversation

nateab
Copy link
Member

@nateab nateab commented Apr 4, 2022

this fixed another flakey spq integration test so going to try to add it here as well in case it helps.

this fixed another flakey spq integration test so going to try to add it here as well in case it helps.
@nateab nateab requested a review from a team as a code owner April 4, 2022 18:00
@CLAassistant
Copy link

CLAassistant commented Apr 4, 2022

CLA assistant check
All committers have signed the CLA.

@@ -280,6 +280,11 @@ private void assertExpectedScalablePushQueries(
|| !metadata.getScalablePushRegistry().get().latestHasAssignment()) {
return false;
}
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

assertThatEventually has a backoff built into it. You can configure it with any of these options:

  public static <T> T assertThatEventually(
      final Supplier<String> message,
      final Supplier<? extends T> actualSupplier,
      final Matcher<? super T> expected,
      final long timeout,
      final TimeUnit unit,
      final long initialPausePeriodMs,
      final long maxPausePeriodMs,
      final ExceptionHandling exceptionHandling
  ) {

Copy link
Member Author

Choose a reason for hiding this comment

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

added a longer period pause

@nateab nateab merged commit 3ce54f1 into master Apr 5, 2022
@nateab nateab deleted the nateab-patch-3 branch April 5, 2022 18:59
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