Skip to content

Commit 6a8c58c

Browse files
author
luigi
committed
fix
1 parent c313ca1 commit 6a8c58c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/codegen/service-codegen-tests/src/test/kotlin/com/test/CborServiceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CborServiceTest {
3636
@BeforeAll
3737
fun boot() {
3838
proc = startService("netty", port, closeGracePeriodMillis, closeTimeoutMillis, requestBodyLimit, projectDir)
39-
val ready = waitForPort(port, portListnerTimeout)
39+
val ready = waitForPort(port, portListnerTimeout, proc)
4040
assertTrue(ready, "Service did not start within $portListnerTimeout s")
4141
}
4242

tests/codegen/service-codegen-tests/src/test/kotlin/com/test/ServiceConstraintsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ServiceConstraintsTest {
3737
@BeforeAll
3838
fun boot() {
3939
proc = startService("netty", port, closeGracePeriodMillis, closeTimeoutMillis, requestBodyLimit, projectDir)
40-
val ready = waitForPort(port, portListenerTimeout)
40+
val ready = waitForPort(port, portListenerTimeout, proc)
4141
assertTrue(ready, "Service did not start within $portListenerTimeout s")
4242
}
4343

tests/codegen/service-codegen-tests/src/test/kotlin/com/test/ServiceEngineFactoryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ServiceEngineFactoryTest {
2626
fun `checks service with netty engine`() {
2727
val nettyPort: Int = ServerSocket(0).use { it.localPort }
2828
val nettyProc = startService("netty", nettyPort, closeGracePeriodMillis, closeTimeoutMillis, requestBodyLimit, projectDir)
29-
val ready = waitForPort(nettyPort, portListnerTimeout)
29+
val ready = waitForPort(nettyPort, portListnerTimeout, proc)
3030
assertTrue(ready, "Service did not start within $portListnerTimeout s")
3131
cleanupService(nettyProc, gracefulWindow)
3232
}

tests/codegen/service-codegen-tests/src/test/kotlin/com/test/utils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private fun isWindows() = System.getProperty("os.name").lowercase().contains("wi
8383
internal fun waitForPort(port: Int, timeoutSec: Long = 180, proc: Process? = null): Boolean {
8484
val deadline = System.currentTimeMillis() + TimeUnit.SECONDS.toNanos(timeoutSec)
8585
while (System.currentTimeMillis() < deadline) {
86-
// proc?.inputStream?.bufferedReader()?.forEachLine {println(it)}
86+
proc?.inputStream?.bufferedReader()?.forEachLine {println(it)}
8787
try {
8888
Socket("localhost", port).use {
8989
return true // Port is available

0 commit comments

Comments
 (0)