mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
Fix test
This commit is contained in:
parent
35b8cfeb2a
commit
9989894802
@ -63,9 +63,6 @@ internal class LockFreeLinkedListTest {
|
|||||||
val addJob = async { list.concurrentDo(2, 30000) { addLast(1) } }
|
val addJob = async { list.concurrentDo(2, 30000) { addLast(1) } }
|
||||||
|
|
||||||
//delay(1) // let addJob fly
|
//delay(1) // let addJob fly
|
||||||
if (addJob.isCompleted) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
val foreachJob = async {
|
val foreachJob = async {
|
||||||
list.concurrentDo(1, 10000) {
|
list.concurrentDo(1, 10000) {
|
||||||
forEach { it + it }
|
forEach { it + it }
|
||||||
|
Loading…
Reference in New Issue
Block a user