Skip to content

Commit

Permalink
Crank up the test retrying so that all of KtLintStepTest can be enabl…
Browse files Browse the repository at this point in the history
…ed (#429).
  • Loading branch information
nedtwigg committed Dec 6, 2021
1 parent 2406c72 commit 142bf66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gradle/special-tests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ tasks.named('test') {
}
if (isCiServer) {
retry {
maxRetries = 1
maxFailures = 2
maxRetries = 2
maxFailures = 10
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package com.diffplug.spotless.kotlin;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import com.diffplug.spotless.FormatterStep;
Expand Down Expand Up @@ -43,10 +42,7 @@ void behavior() throws Exception {
}

@Test
@Disabled
void worksShyiko() throws Exception {
// Must use jcenter (GONE) because `com.andreapivetta.kolor:kolor:0.0.2` isn't available on mavenCentral.
// It is a dependency of ktlint.
FormatterStep step = KtLintStep.create("0.31.0", TestProvisioner.mavenCentral());
StepHarness.forStep(step)
.testResource("kotlin/ktlint/basic.dirty", "kotlin/ktlint/basic.clean")
Expand All @@ -62,8 +58,6 @@ void worksShyiko() throws Exception {
// https://github.com/diffplug/spotless/issues/419
@Test
void worksPinterestAndPre034() throws Exception {
// Must use jcenter (GONE) because `com.andreapivetta.kolor:kolor:0.0.2` isn't available on mavenCentral.
// It is a dependency of ktlint.
FormatterStep step = KtLintStep.create("0.32.0", TestProvisioner.mavenCentral());
StepHarness.forStep(step)
.testResource("kotlin/ktlint/basic.dirty", "kotlin/ktlint/basic.clean")
Expand All @@ -86,14 +80,14 @@ void worksAlpha1() throws Exception {
@Test
void equality() throws Exception {
new SerializableEqualityTester() {
String version = "0.2.2";
String version = "0.32.0";

@Override
protected void setupTest(API api) {
// same version == same
api.areDifferentThan();
// change the version, and it's different
version = "0.2.1";
version = "0.38.0-alpha01";
api.areDifferentThan();
}

Expand Down

0 comments on commit 142bf66

Please sign in to comment.