mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 08:14:56 +08:00
Increase the num of trials to reduce the probability of failing sample_test (#10007)
This commit is contained in:
@@ -61,7 +61,7 @@ TEST_F(RandomSampleTest, TestLargerThanSampleSize) {
|
||||
}
|
||||
|
||||
TEST_F(RandomSampleTest, TestEqualOccurrenceChance) {
|
||||
int trials = 100000;
|
||||
int trials = 1000000;
|
||||
std::vector<int> occurrences(test_vector->size(), 0);
|
||||
for (int i = 0; i < trials; i++) {
|
||||
random_sample(test_vector->begin(), test_vector->end(), test_vector->size() / 2,
|
||||
|
||||
Reference in New Issue
Block a user