mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 15:00:38 +08:00
Fix build
This commit is contained in:
parent
c425a809ba
commit
41f1c12c8a
@ -30,7 +30,7 @@ internal class AtomicResizeCacheListTest {
|
|||||||
val list = AtomicResizeCacheList<Int>(1000)
|
val list = AtomicResizeCacheList<Int>(1000)
|
||||||
assertTrue { list.ensureNoDuplication(1) }
|
assertTrue { list.ensureNoDuplication(1) }
|
||||||
runBlocking {
|
runBlocking {
|
||||||
delay(1001)
|
delay(1010)
|
||||||
// because no concurrency guaranteed on same elements
|
// because no concurrency guaranteed on same elements
|
||||||
assertFalse { list.ensureNoDuplication(1) }
|
assertFalse { list.ensureNoDuplication(1) }
|
||||||
assertTrue { list.ensureNoDuplication(2) }
|
assertTrue { list.ensureNoDuplication(2) }
|
||||||
|
Loading…
Reference in New Issue
Block a user