Skip to content

Commit 5621fe0

Browse files
committed
Add an explanation for CRT.initRuntime
1 parent d17bf67 commit 5621fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class SdkStreamResponseHandlerTest {
155155

156156
@Test
157157
fun testStreamError() = runTest {
158-
CRT.initRuntime()
158+
CRT.initRuntime() // CRT needs to be initialized for human-readable error codes
159159
val handler = SdkStreamResponseHandler(mockConn, coroutineContext)
160160
val stream = MockHttpStream(200)
161161
val data = "foo bar"

0 commit comments

Comments
 (0)