@@ -8,15 +8,14 @@ package aws.sdk.kotlin.crt.http
88import aws.sdk.kotlin.crt.CrtTest
99import aws.sdk.kotlin.crt.io.*
1010import aws.sdk.kotlin.crt.use
11- import kotlinx.coroutines.test.runTest
11+ import kotlinx.coroutines.runBlocking
1212import kotlinx.coroutines.withTimeout
1313import kotlin.test.*
1414import kotlin.time.measureTime
1515
1616class HttpClientConnectionTest : CrtTest () {
17- @Ignore // FIXME Enable when Kotlin/Native implementation is complete
1817 @Test
19- fun testDefaults () = runTest {
18+ fun testDefaults (): Unit = runBlocking {
2019 val uri = Uri .parse(" https://aws-crt-test-stuff.s3.amazonaws.com" )
2120 val socketOpts = SocketOptions ()
2221 val elg = EventLoopGroup ()
@@ -54,9 +53,8 @@ class HttpClientConnectionTest : CrtTest() {
5453 println (" exiting test" )
5554 }
5655
57- @Ignore // FIXME Enable when Kotlin/Native implementation is complete
5856 @Test
59- fun testHttpConnection () = runTest {
57+ fun testHttpConnection (): Unit = runBlocking {
6058 // S3
6159 assertConnect(" https://aws-crt-test-stuff.s3.amazonaws.com" )
6260 assertConnect(" http://aws-crt-test-stuff.s3.amazonaws.com" )
@@ -132,6 +130,7 @@ class HttpClientConnectionTest : CrtTest() {
132130 .forEach { pref ->
133131 TlsContext .build {
134132 tlsCipherPreference = pref
133+ println (" connecting to $url with $pref " )
135134 }.use { tlsContext ->
136135 val elapsed = measureTime {
137136 connect(url, clientBootstrap, tlsContext)
0 commit comments