Skip to content

Commit 00d10a5

Browse files
committed
Initialize CRT runtime to get correct error code
1 parent 3bbc14a commit 00d10a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
package aws.smithy.kotlin.runtime.http.engine.crt
77

8+
import aws.sdk.kotlin.crt.CRT
89
import aws.sdk.kotlin.crt.http.*
910
import aws.sdk.kotlin.crt.io.byteArrayBuffer
10-
import aws.smithy.kotlin.runtime.IgnoreNative
1111
import aws.smithy.kotlin.runtime.http.HttpBody
1212
import aws.smithy.kotlin.runtime.http.HttpErrorCode
1313
import aws.smithy.kotlin.runtime.http.HttpException
@@ -153,9 +153,9 @@ class SdkStreamResponseHandlerTest {
153153
assertEquals(data, respChan.readToBuffer().readUtf8())
154154
}
155155

156-
@IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation.
157156
@Test
158157
fun testStreamError() = runTest {
158+
CRT.initRuntime()
159159
val handler = SdkStreamResponseHandler(mockConn, coroutineContext)
160160
val stream = MockHttpStream(200)
161161
val data = "foo bar"

0 commit comments

Comments
 (0)