gemmellr opened a new pull request #3235: URL: https://github.com/apache/activemq-artemis/pull/3235
I saw RandomUtilDistributionTest fail in a CI run. Checking, the error message indicated that all tries were duplicated and a value of 40 didnt satisfy the minimum expected value of 40. > [ERROR] Failures: [ERROR] RandomUtilDistributionTest.testDistribution:73 The Random distribution is pretty bad. All tries have returned duplicated randoms. value=40, minimum expected = 40 This tweaks the assertion to use >= so as to actually allow the expected minimum count to pass, since 40 was at least 40, and by using > the restriction was over 10% more stringent than it suggests it is trying to be. Also tweaks the message to indicate many rather than all were duplications, since only '1' would indicate the latter. Given the limited selection choices available im surprised this hasnt failed more often. I rather wonder if its a test worth actually throwing >5 seconds and ~2.5GB of mem at to begin with, but this just fixes the actual issues spotted for now, other adjustments can be made again... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
