Skip to content

Commit

Permalink
Remove racing assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvanyo committed Jun 22, 2021
1 parent 2db9722 commit a5bd78e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions integration/kotlinx-coroutines-play-services/test/TaskTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ class TaskTest : TestBase() {
assertTrue(e is CancellationException)
}

assertTrue(taskCompletionSource.task.isCanceled)
assertTrue(cancellationTokenSource.token.isCancellationRequested)
}

Expand All @@ -352,7 +351,6 @@ class TaskTest : TestBase() {
assertTrue(e is CancellationException)
}

assertTrue(taskCompletionSource.task.isCanceled)
assertTrue(cancellationTokenSource.token.isCancellationRequested)
}

Expand All @@ -371,7 +369,6 @@ class TaskTest : TestBase() {

// Cancelling the token doesn't cancel the deferred
assertTrue(cancellationTokenSource.token.isCancellationRequested)
assertFalse(taskCompletionSource.task.isCanceled)
assertFalse(deferred.isCompleted)

// Cleanup
Expand All @@ -393,7 +390,6 @@ class TaskTest : TestBase() {

// Cancelling the token doesn't cancel the deferred
assertTrue(cancellationTokenSource.token.isCancellationRequested)
assertFalse(taskCompletionSource.task.isCanceled)
assertFalse(deferred.isCompleted)

// Cleanup
Expand Down

0 comments on commit a5bd78e

Please sign in to comment.