Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Upgrade to newer Awaitility. #2429

Conversation

AmlingPalantir
Copy link
Contributor

@AmlingPalantir AmlingPalantir commented Oct 4, 2017

Goals (and why):

Implementation Description (bullets):

Concerns (what feedback would you like?):

Where should we start reviewing?:

Priority (whenever / two weeks / yesterday):


This change is Reviewable

Copy link
Contributor

@hsaraogi hsaraogi left a comment

Choose a reason for hiding this comment

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

Looks good overall, some small comments.

@@ -146,7 +146,7 @@
public void setup() throws JsonProcessingException {
// Change code to run synchronously, but with a timeout in case something's gone horribly wrong
originalAsyncMethod = TransactionManagers.runAsync;
TransactionManagers.runAsync = task -> Awaitility.await().atMost(2, TimeUnit.SECONDS).until(task);
TransactionManagers.runAsync = task -> Awaitility.await().atMost(2, TimeUnit.SECONDS).untilAsserted(task::run);
Copy link
Contributor

Choose a reason for hiding this comment

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

task is a Runnable I believe, why did we change this to task::run?

@@ -9,7 +9,7 @@ com.google.dagger:dagger = 2.0.2
com.google.dagger:dagger-compiler = 2.0.2
com.google.guava:* = 18.0
com.googlecode.json-simple:json-simple = 1.1.1
com.jayway.awaitility:awaitility = 1.6.5
Copy link
Contributor

Choose a reason for hiding this comment

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

Looked through the release notes, https://github.com/awaitility/awaitility/wiki/ReleaseNotes30. The changes make sense. Thanks for the contribution!

@hsaraogi hsaraogi mentioned this pull request Nov 13, 2017
@hsaraogi
Copy link
Contributor

Closing in favor of #2668.

@hsaraogi hsaraogi closed this Nov 13, 2017
@AmlingPalantir
Copy link
Contributor Author

Whoops, I somehow missed that there had been responses. task is indeed Runnable, but untilAsserted demands a ThrowingRunnable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants