lowered the number of events in the test because some CI's have an extremely low FD limit
This commit is contained in:
parent
0338516e70
commit
b347490f91
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
output: '''
|
output: '''
|
||||||
hasPendingOperations: false
|
hasPendingOperations: false
|
||||||
triggerCount: 512
|
triggerCount: 100
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ import asyncDispatch
|
||||||
var triggerCount = 0
|
var triggerCount = 0
|
||||||
var evs = newSeq[AsyncEvent]()
|
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()
|
var ev = newAsyncEvent()
|
||||||
evs.add(ev)
|
evs.add(ev)
|
||||||
addEvent(ev, proc(fd: AsyncFD): bool {.gcsafe,closure.} = triggerCount += 1; true)
|
addEvent(ev, proc(fd: AsyncFD): bool {.gcsafe,closure.} = triggerCount += 1; true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue