File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1616
1717package kotlinx.coroutines.experimental.channels
1818
19- import junit.framework.Assert.assertFalse
20- import junit.framework.Assert.assertTrue
2119import kotlinx.coroutines.experimental.TestBase
2220import kotlinx.coroutines.experimental.runBlocking
2321import 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 ))
You can’t perform that action at this time.
0 commit comments