-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paolo Di Tommaso <[email protected]>
- Loading branch information
1 parent
2fd351d
commit 6fb214a
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,7 @@ import spock.lang.Specification | |
|
||
import java.time.Duration | ||
|
||
import dev.failsafe.FailsafeException | ||
import groovy.util.logging.Slf4j | ||
|
||
/** | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
|
@@ -65,8 +63,8 @@ class RetryableTest extends Specification { | |
when: | ||
retryable.apply(()-> {throw new IOException("Oops failed!")}) | ||
then: | ||
def e = thrown(FailsafeException) | ||
e.cause instanceof IOException | ||
def e = thrown(IOException) | ||
e.message == 'Oops failed!' | ||
} | ||
|
||
def 'should validate config' () { | ||
|