Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Update to Kotlin 1.3.11 and coroutines 1.0.1 #34

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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 @@ -36,7 +36,7 @@ class CancelTest {
val deferred = adapter.adapt(call)
call.completeWithException(IOException())
assertFalse(call.isCanceled)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The call is cancelled in coroutines 0.27.0+ because CompletedExceptionally is considered a "cancelled" state

assertTrue(deferred.isCompletedExceptionally)
assertTrue(deferred.isCancelled && deferred.isCompleted)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See Deferred in coroutines 0.27.0 for more details

}

@Test fun cancelOnCancel() {
Expand Down