Files
floci/src/main/java/io
Niels Kootstra 95b5acb1db test(lambda): wait for each SQS poll before advancing the batching-window clock (#4796)
batchingWindowHoldsUnderfilledBatchUntilTheWindowElapses slept 25ms between
polls and then moved the fake clock forward. The poll runs on a separate
thread and starts the window when it reads the clock, so a poll that took
longer than 25ms on a busy runner started the window late (for example at
3s). The later polls were skipped while it was still running, and at 5s the
window had not elapsed, so the function was never invoked.

pollAndInvoke now returns the future of the submitted poll, and the test
waits for each poll to finish before moving the clock.
2026-10-01 07:48:12 -04:00
..