Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert IO changes #33

Merged
merged 1 commit into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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