Skip to content

Commit eab2cff

Browse files
committed
Get rid of deprecated assert classes
1 parent fe64d7b commit eab2cff

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 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.assertFalse
20-
import junit.framework.Assert.assertTrue
2119
import kotlinx.coroutines.experimental.TestBase
2220
import kotlinx.coroutines.experimental.runBlocking
2321
import org.hamcrest.MatcherAssert.assertThat
@@ -30,10 +28,10 @@ class LinkedListChannelTest : TestBase() {
3028
fun testBasic() = runBlocking {
3129
val c = LinkedListChannel<Int>()
3230
c.send(1)
33-
assertTrue(c.offer(2))
31+
check(c.offer(2))
3432
c.send(3)
35-
assertTrue(c.close())
36-
assertFalse(c.close())
33+
check(c.close())
34+
check(!c.close())
3735
assertThat(c.receive(), IsEqual(1))
3836
assertThat(c.poll(), IsEqual(2))
3937
assertThat(c.receiveOrNull(), IsEqual(3))

0 commit comments

Comments
 (0)