Skip to content

Commit

Permalink
Fix test compilation warning after bump kotlin-gradle-plugin from 1.6…
Browse files Browse the repository at this point in the history
….0 to 1.6.21
  • Loading branch information
bmarty committed May 10, 2022
1 parent f54aa60 commit a3b6bb3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.matrix.android.sdk.internal.task

import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.delay
Expand All @@ -32,7 +33,7 @@ class CoroutineSequencersTest : MatrixTest {

private val dispatcher = Executors.newSingleThreadExecutor().asCoroutineDispatcher()

@OptIn(DelicateCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class, ExperimentalCoroutinesApi::class)
@Test
fun sequencer_should_run_sequential() {
val sequencer = SemaphoreCoroutineSequencer()
Expand Down Expand Up @@ -61,7 +62,7 @@ class CoroutineSequencersTest : MatrixTest {
assertEquals(results[2], "#3")
}

@OptIn(DelicateCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class, ExperimentalCoroutinesApi::class)
@Test
fun sequencer_should_run_parallel() {
val sequencer1 = SemaphoreCoroutineSequencer()
Expand All @@ -88,7 +89,7 @@ class CoroutineSequencersTest : MatrixTest {
assertEquals(3, results.size)
}

@OptIn(DelicateCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class, ExperimentalCoroutinesApi::class)
@Test
fun sequencer_should_jump_to_next_when_current_job_canceled() {
val sequencer = SemaphoreCoroutineSequencer()
Expand Down

0 comments on commit a3b6bb3

Please sign in to comment.