Skip to content

Instantly share code, notes, and snippets.

@kevinclark
Created June 17, 2011 03:06
Show Gist options
  • Save kevinclark/1030789 to your computer and use it in GitHub Desktop.
Save kevinclark/1030789 to your computer and use it in GitHub Desktop.
def throwing = { throw new RuntimeException("I fail") }
throwA[RetryFailure] {
retrying(3) { throwing _ }
}
Errors with:
RetryableSpec A retried method that throws::throws a RetryFailure(com.greplin.widmore.tests.RetryableSpec): com.greplin.widmore.util.RetryFailure: Unable to get result after 3 tries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment