Skip to content

Commit 448528e

Browse files
committed
Get rid of deprecated assert functions
1 parent eb6bf84 commit 448528e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/ConflatedChannelCloseStressTest.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package kotlinx.coroutines.experimental.channels
1818

19-
import junit.framework.Assert.assertTrue
20-
import junit.framework.Assert.fail
2119
import kotlinx.coroutines.experimental.*
2220
import org.junit.After
2321
import org.junit.Test
@@ -99,7 +97,7 @@ class ConflatedChannelCloseStressTest : TestBase() {
9997
println("Waiting for receiver...")
10098
try {
10199
receiver.await()
102-
fail("Receiver should not complete normally")
100+
error("Receiver should not complete normally")
103101
} catch (e: StopException) {
104102
// ok
105103
}
@@ -112,7 +110,7 @@ class ConflatedChannelCloseStressTest : TestBase() {
112110
val oldChannel = curChannel.get()
113111
val newChannel = ConflatedChannel<Int>()
114112
curChannel.set(newChannel)
115-
assertTrue(oldChannel.close())
113+
check(oldChannel.close())
116114
}
117115

118116
private fun printStats() {

0 commit comments

Comments
 (0)