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/ChannelSendReceiveStressTest.kt
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,13 @@ class ChannelSendReceiveStressTest(
46
46
val timeLimit =30_000L* stressTestMultiplier // 30 sec
47
47
val nEvents =1_000_000* stressTestMultiplier
48
48
49
+
val maxBuffer =10_000// artifical limit for LinkedListChannel
50
+
49
51
val channel = kind.create()
50
52
val sendersCompleted =AtomicInteger()
51
53
val receiversCompleted =AtomicInteger()
52
54
val dupes =AtomicInteger()
55
+
val sentTotal =AtomicInteger()
53
56
val received =AtomicIntegerArray(nEvents)
54
57
val receivedTotal =AtomicInteger()
55
58
val receivedBy =IntArray(nReceivers)
@@ -90,6 +93,7 @@ class ChannelSendReceiveStressTest(
90
93
println("Tested $kind with nSenders=$nSenders, nReceivers=$nReceivers")
0 commit comments