You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/ConflatedChannelCloseStressTest.kt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,6 @@
16
16
17
17
packagekotlinx.coroutines.experimental.channels
18
18
19
-
importjunit.framework.Assert.assertTrue
20
-
importjunit.framework.Assert.fail
21
19
importkotlinx.coroutines.experimental.*
22
20
importorg.junit.After
23
21
importorg.junit.Test
@@ -99,7 +97,7 @@ class ConflatedChannelCloseStressTest : TestBase() {
99
97
println("Waiting for receiver...")
100
98
try {
101
99
receiver.await()
102
-
fail("Receiver should not complete normally")
100
+
error("Receiver should not complete normally")
103
101
} catch (e:StopException) {
104
102
// ok
105
103
}
@@ -112,7 +110,7 @@ class ConflatedChannelCloseStressTest : TestBase() {
0 commit comments