Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ commonsCodec = { module = "commons-codec:commons-codec", version = "1.19.0" }
commonsLang = { module = "org.apache.commons:commons-lang3", version = "3.19.0" }
commonsIo = { module = "commons-io:commons-io", version = "2.20.0" }
slf4j-api = { module = "org.slf4j:slf4j-api", version = "2.0.17" }
jgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version = "7.3.0.202506031305-r" }
jgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version = "7.4.0.202509020913-r" }
okio = { module = "com.squareup.okio:okio", version = "3.16.0" }

picocli-core = { module = "info.picocli:picocli", version.ref = "picocli" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,23 @@ class TiaMavenMultipleJobsTest {
// process is finished before testing.
runMaven(workingDirectory, "clean")

// run three verify processes in parallel without waiting
repeat(3) {
buildMavenProcess(workingDirectory, "verify").build().start()
// run three verify processes in parallel and collect them
val processes = List(3) {
buildMavenProcess(workingDirectory, "verify")
.build()
.apply {
redirectOutput(ProcessBuilder.Redirect.DISCARD)
redirectError(ProcessBuilder.Redirect.DISCARD)
}
.start()
}

// and one more that we wait for to terminate
runMaven(workingDirectory, "verify")

// wait for all parallel processes to complete
processes.forEach { it.waitFor() }

val configFile = Paths.get(workingDirectory, "target", "tia", "agent.log")
val configContent = configFile.toFile().readText()
Assertions.assertThat(configContent).isNotEmpty().doesNotContain("Could not start http server on port")
Expand Down