mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
lowered the number of events in the test because some CI's have an extremely low FD limit
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
discard """
|
||||
output: '''
|
||||
hasPendingOperations: false
|
||||
triggerCount: 512
|
||||
triggerCount: 100
|
||||
'''
|
||||
"""
|
||||
|
||||
@@ -10,7 +10,7 @@ import asyncDispatch
|
||||
var triggerCount = 0
|
||||
var evs = newSeq[AsyncEvent]()
|
||||
|
||||
for i in 0 ..< 512: # has to be lower than the typical physical fd limit
|
||||
for i in 0 ..< 100: # has to be lower than the typical physical fd limit
|
||||
var ev = newAsyncEvent()
|
||||
evs.add(ev)
|
||||
addEvent(ev, proc(fd: AsyncFD): bool {.gcsafe,closure.} = triggerCount += 1; true)
|
||||
|
||||
Reference in New Issue
Block a user