Skip to content

Commit 383b827

Browse files
committedDec 4, 2021
Now that we're all mavenCentral and no jcenter, maybe tests won't be flaky and we can close-out #429.
1 parent 22e777b commit 383b827

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎testlib/src/test/java/com/diffplug/spotless/kotlin/KtLintStepTest.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.diffplug.spotless.kotlin;
1717

18-
import org.junit.jupiter.api.Disabled;
1918
import org.junit.jupiter.api.Test;
2019

2120
import com.diffplug.spotless.FormatterStep;
@@ -29,18 +28,15 @@
2928
* causes these problems. The root is still a gradle bug, but in the meantime we don't
3029
* need to hold up *every* PR with this: https://github.com/gradle/gradle/issues/11752
3130
*/
32-
@Disabled
3331
class KtLintStepTest extends ResourceHarness {
3432
@Test
3533
void behavior() throws Exception {
36-
// Must use jcenter (GONE) because `com.andreapivetta.kolor:kolor:0.0.2` isn't available on mavenCentral.
37-
// It is a dependency of ktlint.
3834
FormatterStep step = KtLintStep.create(TestProvisioner.mavenCentral());
3935
StepHarness.forStep(step)
4036
.testResource("kotlin/ktlint/basic.dirty", "kotlin/ktlint/basic.clean")
4137
.testResourceException("kotlin/ktlint/unsolvable.dirty", assertion -> {
4238
assertion.isInstanceOf(AssertionError.class);
43-
assertion.hasMessage("Error on line: 1, column: 1\n" +
39+
assertion.hasMessage("Error on line: 1, column: 2\n" +
4440
"Wildcard import");
4541
});
4642
}

0 commit comments

Comments
 (0)
Please sign in to comment.