diff --git a/README.adoc b/README.adoc index a1384754..8f1ccb2a 100644 --- a/README.adoc +++ b/README.adoc @@ -73,13 +73,13 @@ You may find that local developer builds do not benefit much from retry behaviou ---- boolean isCiServer = System.getenv().containsKey("CI") test { - if (isCiServer) { - retry { + retry { + if (isCiServer) { maxRetries = 2 maxFailures = 20 } + failOnPassedAfterRetry = true } - failOnPassedAfterRetry = true } ----