Double the timing expectations for the queue batching tests #528
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What do these changes do?
Double the timing expectations for the queue-batching tests.
Description
Previously, before #522, the timing allowances were very broad, so the tests passed even if the number of "batching" attempts (and, therefore, timing) were different from expected.
Now, the timing allowances are dynamically & statistically calculated in the environment where it runs, with different overhead for the non-timed code. As a result, the timing allowances for the tests were narrowed to the strictly expected timing of each "batching" cycle plus overhead. As a result, the number of times this "baching" is performed started to matter.
In the queue batching test, there are 2 batches actually expected: one for a batch of events, another one for the EOS token when the watcher finishes. The tests were expecting only 1.
Now, they will expected 2.
This only fixes the CI pipeline and does not affect the users.
Issues/PRs
Type of changes
Checklist
CONTRIBUTORS.txt