[wip] reproduce issue #494
https://github.com/codex-storage/nim-codex/issues/494
This commit is contained in:
parent
098baf47d1
commit
d34d31a6e8
|
@ -263,6 +263,7 @@ asyncchecksuite "Sales":
|
||||||
# check that request was ignored due to no matching availability
|
# check that request was ignored due to no matching availability
|
||||||
check always itemsProcessed.len == 0
|
check always itemsProcessed.len == 0
|
||||||
|
|
||||||
|
for _ in 0..<10000:
|
||||||
test "adds past requests to queue once availability added":
|
test "adds past requests to queue once availability added":
|
||||||
var itemsProcessed: seq[SlotQueueItem] = @[]
|
var itemsProcessed: seq[SlotQueueItem] = @[]
|
||||||
queue.onProcessSlot = proc(item: SlotQueueItem, done: Future[void]) {.async.} =
|
queue.onProcessSlot = proc(item: SlotQueueItem, done: Future[void]) {.async.} =
|
||||||
|
|
Loading…
Reference in New Issue