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

Commit 2a080a6

Browse files
committed
Temporarily disable a test that is not valid with coroutines 0.27.0+ to ensure other tests are working
1 parent d8ad9ca commit 2a080a6

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.google.common.reflect.TypeToken
66
import kotlinx.coroutines.Deferred
77
import org.junit.Assert.assertFalse
88
import org.junit.Assert.assertTrue
9+
import org.junit.Ignore
910
import org.junit.Test
1011
import retrofit2.CallAdapter
1112
import retrofit2.Retrofit
@@ -29,6 +30,7 @@ class CancelTest {
2930
assertTrue(deferred.isCompleted)
3031
}
3132

33+
@Ignore("This test no longer works with coroutines 0.27.0+ because CompletedExceptionally is now considered a cancelled state by CompletableDeferred")
3234
@Test fun noCancelOnError() {
3335
val deferredString = typeOf<Deferred<String>>()
3436
val adapter = factory.get(deferredString, emptyArray(), retrofit)!! as CallAdapter<String, Deferred<String>>

0 commit comments

Comments
 (0)