The GitHub Actions job "Pull Requests" on 
pekko.git/test/java-retry-short-circuit has succeeded.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
798ac02644e664d6c3a5c5d0de1d4e12bc479543 / 虎鸣 <[email protected]>
test: add Java test for retry short-circuit with Predicate2

Motivation:
The Java DSL Patterns.retry with Predicate2 (shouldRetry) has been
available since 1.1.0 but lacks a directional test exercising the
short-circuit behavior from Java. The Scala DSL has coverage in
RetrySpec but the Java path is untested.

Modification:
Add testShortCircuitRetry to PatternsTest.java that verifies:
- Retry continues when predicate returns true (IllegalStateException)
- Retry stops immediately when predicate returns false 
(IllegalArgumentException)
- Exactly 3 attempts are made (2 retriable + 1 non-retriable)

Result:
Java DSL retry short-circuit behavior is now covered by a directional
test that would fail if the Predicate2 wiring were broken.

Tests:
- sbt "actor-tests / Test / testOnly org.apache.pekko.pattern.PatternsTest"

References:
Refs akka/akka-core#32035

Report URL: https://github.com/apache/pekko/actions/runs/31871070075

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to