Skip to content

Commit 592c088

Browse files
committed
test fix
1 parent 87be0ca commit 592c088

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

testlib/src/test/java/com/diffplug/spotless/GitPrePushHookInstallerTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,10 @@ public void should_handle_parallel_installation() {
353353
});
354354

355355
// then
356-
assertThat(logs).containsExactlyInAnyOrder(
356+
assertThat(logs).containsOnly(
357357
"Installing git pre-push hook",
358358
"Git pre-push hook not found, creating it",
359359
"Parallel Spotless Git pre-push hook installation detected, skipping installation",
360-
"Parallel Spotless Git pre-push hook installation detected, skipping installation",
361360
"Local gradle wrapper (gradlew) not found, falling back to global command 'gradle'",
362361
"Git pre-push hook installed successfully to the file " + newFile(".git/hooks/pre-push").getAbsolutePath());
363362

@@ -380,7 +379,7 @@ private String mavenHookContent(String resourcePath, ExecutorType executorType)
380379
}
381380

382381
private void parallelRun(ThrowableRun runnable) {
383-
IntStream.range(0, 3)
382+
IntStream.range(0, 5)
384383
.mapToObj(i -> new Thread(() -> {
385384
try {
386385
runnable.run();

0 commit comments

Comments
 (0)