Awaitility 4.1.0 is released

29 views
Skip to first unread message

Johan Haleby

unread,
May 8, 2021, 1:56:14 AM5/8/21
to await...@googlegroups.com
Awaitility 4.1.0 has just been released. Changes are:

* Upgraded to Scala from 2.13.3 to 2.13.5 (thanks to sullis for pull request)
* Upgraded Kotlin from 1.3.72 to 1.5.0
* Fixed a bug preventing you to specify "fib(-1)" when using the fibonacci poll interval (thanks to Björn Michael for pull request) (issue 201)
* Added support for fail-fast conditions. This is a special condition that, if fulfilled, will throw a "org.awaitility.core.TerminalFailureException" immediately, thus failing the test.
  This is good when you have a condition that you know beforehand should never be fulfilled. So instead of waiting the full duration of a normal condition evaluation period, the test will fail
  faster if this (fail fast) condition evaluates to true. For example:

  await().timeout(Duration.ofSeconds(5)).failFast(() -> orders.findById(1234).state == PAID).until(() -> orders.findById(1234).state == CLOSED);

  This will fail-fast if the state of order 1234 is ever equal to "PAID" during the 5 second evaluation of the condition specified in "until".
  (Thanks to Antony Stubbs for the initial pull request) (issue 178)
* Upgraded Groovy from version 3.0.4 to 3.0.8


Enjoy!
Reply all
Reply to author
Forward
0 new messages