Increase the num of trials to reduce the probability of failing sample_test (#10007)

This commit is contained in:
SangBin Cho
2020-08-10 10:05:33 -07:00
committed by GitHub
parent 0392bb7a72
commit eb6b10221e
+1 -1
View File
@@ -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,