-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Tests
-
Team:PLATFORM
-
Sprint:nxplatform #15
-
Story Points:0
All calls to awaitility should end with a call to until method or equivalent otherwise nothing happens.
We have some usage like the one below:
await().atLeast(Duration.FIVE_SECONDS);
We should replace them by:
await().pollDelay(Duration.FIVE_SECONDS).until(() -> isReady());
When the isReady method is not possible (for instance: wait a bit to leave some fresh air to the DB), the following lambda could be used, but note that it is conceptually incorrect:
await().pollDelay(Duration.FIVE_SECONDS).until(() -> true);
- Is referenced in