Skip to content

Commit

Permalink
Revert IO changes (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
aballano committed Jul 3, 2020
1 parent e551221 commit 242da98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import arrow.fx.rx2.extensions.observablek.applicativeError.applicativeError
import arrow.fx.rx2.extensions.observablek.monadDefer.monadDefer
import arrow.fx.rx2.fix
import arrow.fx.rx2.value
import arrow.fx.unsafeRunSync
import arrow.integrations.retrofit.adapter.mock.ResponseMock
import arrow.integrations.retrofit.adapter.retrofit.ApiClientTest
import arrow.integrations.retrofit.adapter.retrofit.retrofit
Expand All @@ -35,7 +34,8 @@ class ProcCallBackTest : UnitSpec() {
"should be able to parse answer with ForIO" {
createApiClientTest(baseUrl())
.testCallK()
.async(IO.async<Nothing>())
.async(IO.async())
.fix()
.unsafeRunSync()
.unwrapBody(Either.applicativeError())
.fix()
Expand Down Expand Up @@ -64,7 +64,8 @@ class ProcCallBackTest : UnitSpec() {
"should be able to run a POST with UNIT as response" {
createApiClientTest(baseUrl())
.testIOResponsePost()
.async(IO.async<Nothing>())
.async(IO.async())
.fix()
.unsafeRunSync()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import arrow.core.test.UnitSpec
import arrow.fx.IO
import arrow.fx.extensions.io.async.async
import arrow.fx.fix
import arrow.fx.unsafeRunSync
import arrow.integrations.retrofit.adapter.retrofit.ApiClientTest
import arrow.integrations.retrofit.adapter.retrofit.retrofit
import io.kotlintest.fail
Expand All @@ -24,7 +23,7 @@ class ResponseCallbackTest : UnitSpec() {
"bad deserialization should return Either.Left" {
createApiClientTest(baseUrl)
.testCallK()
.async(IO.async<Nothing>())
.async(IO.async())
.fix()
.attempt()
.unsafeRunSync()
Expand Down

0 comments on commit 242da98

Please sign in to comment.