@@ -7,7 +7,7 @@ package aws.sdk.kotlin.crt.http
77
88import aws.sdk.kotlin.crt.util.Digest
99import aws.sdk.kotlin.crt.util.encodeToHex
10- import kotlinx.coroutines.test.runTest
10+ import kotlinx.coroutines.runBlocking
1111import org.junit.jupiter.api.AfterAll
1212import org.junit.jupiter.api.BeforeAll
1313import org.junit.jupiter.api.TestInstance
@@ -65,55 +65,49 @@ class HttpRequestResponseTest : HttpClientTest() {
6565 }
6666 }
6767
68- @Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
6968 @Test
70- fun testHttpGet () = runTest {
69+ fun testHttpGet () = runBlocking {
7170 testSimpleRequest(" GET" , " /get" , 200 )
7271 testSimpleRequest(" GET" , " /post" , 405 )
7372 testSimpleRequest(" GET" , " /put" , 405 )
7473 testSimpleRequest(" GET" , " /delete" , 405 )
7574 }
7675
77- @Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
7876 @Test
79- fun testHttpPost () = runTest {
77+ fun testHttpPost () = runBlocking {
8078 testSimpleRequest(" POST" , " /get" , 405 )
8179 testSimpleRequest(" POST" , " /post" , 200 )
8280 testSimpleRequest(" POST" , " /put" , 405 )
8381 testSimpleRequest(" POST" , " /delete" , 405 )
8482 }
8583
86- @Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
8784 @Test
88- fun testHttpPut () = runTest {
85+ fun testHttpPut () = runBlocking {
8986 testSimpleRequest(" PUT" , " /get" , 405 )
9087 testSimpleRequest(" PUT" , " /post" , 405 )
9188 testSimpleRequest(" PUT" , " /put" , 200 )
9289 testSimpleRequest(" PUT" , " /delete" , 405 )
9390 }
9491
95- @Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
9692 @Test
97- fun testHttpDelete () = runTest {
93+ fun testHttpDelete () = runBlocking {
9894 testSimpleRequest(" DELETE" , " /get" , 405 )
9995 testSimpleRequest(" DELETE" , " /post" , 405 )
10096 testSimpleRequest(" DELETE" , " /put" , 405 )
10197 testSimpleRequest(" DELETE" , " /delete" , 200 )
10298 }
10399
104- @Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
105100 @Test
106- fun testHttpDownload () = runTest {
101+ fun testHttpDownload () = runBlocking {
107102 val response = roundTrip(url = " https://aws-crt-test-stuff.s3.amazonaws.com/http_test_doc.txt" , verb = " GET" )
108103 assertEquals(200 , response.statusCode, " expected http status does not match" )
109104 assertNotNull(response.body)
110105
111106 assertEquals(TEST_DOC_SHA256 , Digest .sha256(response.body).encodeToHex())
112107 }
113108
114- @Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
115109 @Test
116- fun testHttpUpload () = runTest {
110+ fun testHttpUpload () = runBlocking {
117111 val bodyToSend = TEST_DOC_LINE
118112
119113 // Set up mock server
0 commit comments