Skip to content

Bump org.awaitility:awaitility from 4.3.0 to 4.4.0 - #257

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/org.awaitility-awaitility-4.4.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/org.awaitility-awaitility-4.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps org.awaitility:awaitility from 4.3.0 to 4.4.0.

Changelog

Sourced from org.awaitility:awaitility's changelog.

Changelog 4.4.0 (2026-11-27)

  • Added an Automatic-Module-Name to the jar manifests, which changes the module names for module-path users: awaitility -> org.awaitility awaitility.kotlin -> org.awaitility.kotlin awaitility.scala -> org.awaitility.scala awaitility.groovy -> org.awaitility.groovy (issue 205, thanks to Piotr P. Karwasz for the original pull request).

  • awaitility-groovy can now be used on the module path. Its Groovy extension module descriptor moved from META-INF/services to META-INF/groovy, where Groovy 2.5 and later look for it, because the module system rejected the old file.

  • Added failFast to the Kotlin DSL (issue 206). For example:

    await atMost Duration.ofMinutes(1) failFast { workflow.phase == "Failed" } until { workflow.phase == "Done" } Also available are failFastWithReason("reason") { .. } and failFastAsserted { .. } (with an optional reason).

  • Added Awaitility.getDefaultTimeout(), getDefaultPollInterval() and getDefaultPollDelay() that return the current defaults. getDefaultPollDelay() returns null when no default poll delay is set, and setDefaultPollDelay(Duration) now accepts null to go back to that, so you can save and restore all three (issue 269, thanks to Alexander Schmidt for the original pull request).

  • Awaitility's internal polling executor is now a plain ThreadPoolExecutor instead of Executors.newSingleThreadExecutor(..), so each await statement no longer creates the finalizable wrapper that newSingleThreadExecutor adds (a cleaner registration from Java 21). On Java 8 ThreadPoolExecutor itself has a finalizer, so the saving there is one finalizable object instead of two (issue 168). Executors passed in by users and the existing InternalExecutorServiceFactory.create(..) methods are unchanged.

  • fieldIn(..) no longer relies on the compiler's synthetic this$0 field to build its timeout message (issue 223).

  • Upgraded assertj-core to 3.27.7 (thanks to Ian Hundere for pull request).

  • Updated the README example to use the Duration overload in await().atMost(..) (thanks to Kurt Alfred Kluever for pull request).

  • Added support for configuring the default timeout, poll interval and poll delay using ISO-8601 system properties. For example:

    -Dawaitility.defaultTimeout=PT5S -Dawaitility.defaultPollInterval=PT0.1S -Dawaitility.defaultPollDelay=PT0.2S

    (thanks to Henning Hoefer for pull request).

  • Clarified fail-fast documentation so that it correctly states that terminal failure happens when the fail-fast condition evaluates to true, and cleaned up related Javadocs (thanks to Mustafa Ulu for pull request).

  • Added failFastWithReason(Supplier, Callable) and failFastWithReason(Supplier, ThrowingRunnable) so that the fail-fast failure reason is created only when the fail-fast condition triggers, and can include the current state (issue 240). For example:

    await().failFastWithReason(() -> "Order failed, last known state: " + order.state(), () -> order.state() == FAILED).until(() -> order.state() == SHIPPED);

    If the supplier throws, the TerminalFailureException is still thrown and the supplier's exception is added to it as a suppressed exception.

  • Added untilThrown(..) and untilThrownExactly(..) that wait until some code throws an exception of a given type and return that exception (issue 129). For example: IOException e = await().atMost(5, SECONDS).untilThrown(() -> client.fetch("/status"), IOException.class); untilThrown also matches subclasses, untilThrownExactly only the exact class. Both take a Callable or a ThrowingRunnable. If the code returns normally Awaitility keeps polling, and any other exception fails the wait right away unless it's ignored with e.g. ignoreException(..). A method reference to an overloaded method is ambiguous here, so use a lambda for those. The Kotlin DSL has "await.untilThrown { client.fetch("/status") }" and untilThrownExactly.

  • Added timeoutMessage(Supplier) to the DSL. The supplier is only called if the await times out, and its text is appended on a new line after the standard timeout message, so the alias and the mismatch description are kept. For example: await().atMost(5, SECONDS) .timeoutMessage(() -> "Order state was " + orders.stateOf(orderId)) .until(() -> orders.stateOf(orderId) == SHIPPED); Kotlin users can write "await withTimeoutMessage { .. } until { .. }" (pull request 195, thanks to James Agnew for the original pull request).

  • Added ConditionFactory#onTimeout(..) that takes a callback which is called once when the await times out, just before the ConditionTimeoutException is thrown. Use it to print extra diagnostics when a test is about to fail. For example: await().atMost(10, SECONDS).onTimeout(event -> env.printErrors()).until(..); The callback receives the TimeoutEvent and is called in the same cases as ConditionEvaluationListener#onTimeout (a timeout or an atLeast violation), not when the condition throws or a fail-fast condition fails. It is kept when conditionEvaluationListener(..) or logging(..) is called afterwards. If the callback throws, its exception is added as suppressed to the ConditionTimeoutException. The callback is still called if a listener's onTimeout throws. Also available in the Kotlin DSL as "await atMost 10.seconds onTimeout { .. } until { .. }" (issue 283, thanks to Burak KALAYCI for pull request).

  • during(..) can now succeed with the default timeout (issues 91, 165, 186 and 264). If you don't set atMost yourself, the default timeout is extended by the during period, so await().during(10, SECONDS).until(..) now works with the default 10 second timeout. If you do set atMost and it is not larger than the poll delay plus the during period, the await now fails at once with a ConditionTimeoutException that explains why, instead of polling until the timeout. When the condition is fulfilled at the timeout but has not held for the whole during period, the error message now says so (thanks to arimu1 for the timeout message work in pull request 309).

  • Added untilOrTimeout(..) and untilAssertedOrTimeout(..) that return an AwaitResult instead of throwing ConditionTimeoutException when the condition is not fulfilled in time. Other exceptions, such as fail fast failures, are still thrown. For example: AwaitResult result = await().atMost(Duration.ofSeconds(2)).untilOrTimeout(repository::count, is(greaterThan(2))); if (!result.isSuccess()) { log.warn("Got {} items: {}", result.getValue(), result.getCause().getMessage()); } Kotlin users can write "await atMost 2.seconds untilOrTimeout { repository.count() > 2 }" (issue 48, thanks to Jonatan Ivanov for the design).

  • fieldIn(..) error messages now work for fields declared in a superclass. Before, the timeout message said "Internal error" (issue 247, thanks to Jaya Dileep for pull request).

  • JavaVersionDetector now reads the major version from java.version strings like "25+36" and "25+36-ea" instead of throwing (issue 296, thanks to arimu1 for pull request).

  • Clarified in the Javadoc that during(..) needs the condition to hold continuously, not for a total of that time (issue 298, thanks to Jaya Dileep for pull request).

... (truncated)

Commits
  • e85d9f6 [maven-release-plugin] prepare release awaitility-4.4.0
  • a5e0f46 [ci skip] Make the release script stop on failure and check before it changes...
  • 89aa813 Merge pull request #348 from awaitility/claude/4.4.0-onfailure-310
  • 6223513 Call the onTimeout callback even when a listener's onTimeout throws
  • 0b64281 Merge pull request #310 by kalayciburak, keeping master's onTimeout API
  • 18ce9f6 Merge pull request #336 from awaitility/claude/4.4.0-tryuntil
  • 653b941 Merge pull request #335 from awaitility/claude/4.4.0-during
  • d0c20f7 Merge pull request #334 from awaitility/claude/4.4.0-onfailure
  • e58692f Merge pull request #333 from awaitility/claude/4.4.0-timeoutmessage
  • ad18606 Merge pull request #337 from awaitility/claude/4.4.0-untilthrown
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [org.awaitility:awaitility](https://github.com/awaitility/awaitility) from 4.3.0 to 4.4.0.
- [Changelog](https://github.com/awaitility/awaitility/blob/master/changelog.txt)
- [Commits](awaitility/awaitility@awaitility-4.3.0...awaitility-4.4.0)

---
updated-dependencies:
- dependency-name: org.awaitility:awaitility
  dependency-version: 4.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from oleg-nenashev as a code owner December 1, 2026 00:04
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants