Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans committed Sep 3, 2022
1 parent 8b903d5 commit c847561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ktlint/src/test/kotlin/com/pinterest/ktlint/BaseCLITest.kt
Expand Up @@ -151,7 +151,7 @@ abstract class BaseCLITest {

companion object {
private const val WAIT_INTERVAL_DURATION = 100L
private const val WAIT_INTERVAL_MAX_OCCURRENCES = 100
private const val WAIT_INTERVAL_MAX_OCCURRENCES = 1000
val testProjectsPath: Path = Paths.get("src", "test", "resources", "cli")
const val BASE_DIR_PLACEHOLDER = "__TEMP_DIR__"
}
Expand Down
Expand Up @@ -69,7 +69,7 @@ class SimpleCLITest : BaseCLITest() {
"too-many-empty-lines",
listOf("SomeOtherFile.kt"),
) {
assertErrorExitCode()
assertNormalExitCode()

assert(normalOutput.find { it.contains("No files matched [SomeOtherFile.kt]") } != null) {
"Unexpected output:\n${normalOutput.joinToString(separator = "\n")}"
Expand Down

0 comments on commit c847561

Please sign in to comment.