Skip to content

Commit

Permalink
trying to fix flacky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Dec 26, 2023
1 parent b32f71a commit ea3f595
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/arrow/dataset/dataset_writer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ TEST_F(DatasetWriterTestFixture, MaxRowsOneWriteBackpresure) {
write_options_.max_open_files = 2;
write_options_.min_rows_per_group = kFileSizeLimit - 1;
auto dataset_writer = MakeDatasetWriter(/*max_rows=*/kFileSizeLimit);
for (int i = 0; i < 20; ++i) {
dataset_writer->WriteRecordBatch(MakeBatch(kFileSizeLimit * 5), "");
for (int i = 0; i < 5; ++i) {
dataset_writer->WriteRecordBatch(MakeBatch(kFileSizeLimit * 2), "");
}
EndWriterChecked(dataset_writer.get());
std::vector<ExpectedFile> expected_files;
for (int i = 0; i < 100; ++i) {
for (int i = 0; i < 10; ++i) {
expected_files.emplace_back("testdir/chunk-" + std::to_string(i) + ".arrow",
kFileSizeLimit * i, kFileSizeLimit);
}
Expand Down

0 comments on commit ea3f595

Please sign in to comment.