Skip to content

Commit db29b65

Browse files
committed
Polishing
1 parent 18adf90 commit db29b65

File tree

3 files changed

+103
-95
lines changed

3 files changed

+103
-95
lines changed

buildSrc/src/main/java/org/springframework/build/TestConventions.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
* Conventions that are applied in the presence of the {@link JavaBasePlugin}. When the
2727
* plugin is applied:
2828
* <ul>
29-
* <li>The {@link TestRetryPlugin Test Retry} plugins is applied so that flaky tests
30-
* are retried 3 times when running on the CI.
29+
* <li>The {@link TestRetryPlugin Test Retry} plugin is applied so that flaky tests
30+
* are retried 3 times when running on the CI server.
3131
* </ul>
3232
*
3333
* @author Brian Clozel
@@ -41,7 +41,7 @@ void apply(Project project) {
4141

4242
private void configureTestConventions(Project project) {
4343
project.getTasks().withType(Test.class,
44-
(test) -> project.getPlugins().withType(TestRetryPlugin.class, (testRetryPlugin) -> {
44+
test -> project.getPlugins().withType(TestRetryPlugin.class, testRetryPlugin -> {
4545
TestRetryTaskExtension testRetry = test.getExtensions().getByType(TestRetryTaskExtension.class);
4646
testRetry.getFailOnPassedAfterRetry().set(true);
4747
testRetry.getMaxRetries().set(isCi() ? 3 : 0);

0 commit comments

Comments
 (0)