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

Commit d8ad9ca

Browse files
committed
Migrate CompletableDeferred.isCompletedExceptionally to its deprecation change in coroutines 0.27.0+
1 parent 586a9e2 commit d8ad9ca

File tree

1 file changed

+1
-1
lines changed
  • src/test/java/com/jakewharton/retrofit2/adapter/kotlin/coroutines

1 file changed

+1
-1
lines changed

src/test/java/com/jakewharton/retrofit2/adapter/kotlin/coroutines/CancelTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CancelTest {
3636
val deferred = adapter.adapt(call)
3737
call.completeWithException(IOException())
3838
assertFalse(call.isCanceled)
39-
assertTrue(deferred.isCompletedExceptionally)
39+
assertTrue(deferred.isCancelled && deferred.isCompleted)
4040
}
4141

4242
@Test fun cancelOnCancel() {

0 commit comments

Comments
 (0)