Skip to content

Commit b243c8c

Browse files
author
luigi
committed
fix
1 parent 0db31ec commit b243c8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/codegen/service-codegen-tests/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ tasks.test {
3737
kotlin {
3838
compilerOptions {
3939
freeCompilerArgs.addAll(
40-
"-opt-in=aws.smithy.kotlin.runtime.InternalApi",
4140
"-opt-in=kotlin.io.path.ExperimentalPathApi",
4241
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
4342
)

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.test
22

3+
import aws.smithy.kotlin.runtime.InternalApi
34
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
45
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSignatureType
56
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSignedBodyHeader
@@ -99,10 +100,9 @@ internal fun cleanupService(proc: Process, gracefulWindow: Long = 5_000L) {
99100

100101
private fun isWindows() = System.getProperty("os.name").lowercase().contains("windows")
101102

102-
internal fun waitForPort(port: Int, timeoutSec: Long = 180, proc: Process? = null): Boolean {
103+
internal fun waitForPort(port: Int, timeoutSec: Long = 180): Boolean {
103104
val deadline = System.currentTimeMillis() + TimeUnit.SECONDS.toNanos(timeoutSec)
104105
while (System.currentTimeMillis() < deadline) {
105-
proc?.inputStream?.bufferedReader()?.forEachLine { println(it) }
106106
try {
107107
Socket("localhost", port).use {
108108
return true // Port is available
@@ -125,6 +125,7 @@ data class AwsSigningOptions(
125125
val normalizeUriPath: Boolean = true,
126126
)
127127

128+
@OptIn(InternalApi::class)
128129
internal fun sendRequest(
129130
url: String,
130131
method: String,

0 commit comments

Comments
 (0)