You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test waits until it receives first non-zero sample, then receives 10000 samples, then checks that each one is either zero or has correct value; it means that if we received one non-zero sample, and then 10000 zeros, the test will pass. Instead of this, I suggest to remove upper limit for how much samples we receive, and instead place lower limit of how much non-zero samples we want. So we will receive samples, check that each one is either zero or correct, and repeat this until we accumulate N non-zero samples. This way the test will check that there are a lot (N) of good samples, and at the same time it won't be bound to a particular loss ratio. Losses may happen on a loaded CI worker.
100 samples is not very interesting number - they will fit in one packet. I suggest to wait until we receive something like 10K non-zero samples, so that it will be many packets.
To avoid unintuitive part with 0.5, we can work with integers:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
fixes #101