lowered the number of events in the test because some CI's have an extremely low FD limit

This commit is contained in:
Ray Imber 2019-10-07 10:06:42 -07:00
commit b347490f91

View file

@ -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)