-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
predicates/traffic: fix flaky TrafficSegment tests (#2423)
Test failure could be reproduced via: ``` go test ./predicates/traffic/ -count=100 -run=TestTrafficSegmentSplit ``` * use delta of expected value instead of total number of test requests * use predefined number of test requests for all tests Based on the biggest difference seen for 1000 test requests: ``` Max difference between 500 and 462 allowed is 25, but difference was 38 ``` the delta should be 38/500=0.076 To reduce flakiness: * increase total number of samples to 10'000 * then increase delta to 6% based on the failed test case output Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
- Loading branch information
1 parent
46c84af
commit 399b08b
Showing
1 changed file
with
31 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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