Skip to content

Commit 87d3055

Browse files
ndkovalpablobaxter
authored andcommitted
Allow extra suspension in Lincheck tests for Semaphore.acquire() (Kotlin#2602)
1 parent 40fb826 commit 87d3055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/jvm/test/lincheck/SemaphoreLincheckTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class SemaphoreLincheckTestBase(permits: Int) : AbstractLincheckTest()
1616
@Operation
1717
fun tryAcquire() = semaphore.tryAcquire()
1818

19-
@Operation(promptCancellation = true)
19+
@Operation(promptCancellation = true, allowExtraSuspension = true)
2020
suspend fun acquire() = semaphore.acquire()
2121

2222
@Operation(handleExceptionsAsResult = [IllegalStateException::class])

0 commit comments

Comments
 (0)