From 8a28131943148a91d5020bb007e1ad4340c84a98 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Wed, 15 Dec 2021 14:15:28 +0000 Subject: [PATCH] ARROW-15113: [C++] Make GcsFileSystem tests a bit faster --- cpp/src/arrow/filesystem/gcsfs_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/arrow/filesystem/gcsfs_test.cc b/cpp/src/arrow/filesystem/gcsfs_test.cc index a51115f9f355c..a2985ca1d17a1 100644 --- a/cpp/src/arrow/filesystem/gcsfs_test.cc +++ b/cpp/src/arrow/filesystem/gcsfs_test.cc @@ -201,12 +201,13 @@ class GcsIntegrationTest : public ::testing::Test { const char* const kTestFolders[] = { "a/", "a/0/", "a/0/0/", "a/1/", "a/2/", }; + constexpr auto kFilesPerFolder = 4; auto result = Hierarchy{PreexistingBucketPath() + "a/", {}}; for (auto const* f : kTestFolders) { const auto folder = PreexistingBucketPath() + f; RETURN_NOT_OK(fs->CreateDir(folder, true)); result.contents.push_back(arrow::fs::Dir(folder)); - for (int i = 0; i != 64; ++i) { + for (int i = 0; i != kFilesPerFolder; ++i) { const auto filename = folder + "test-file-" + std::to_string(i); CreateFile(fs.get(), filename, filename); result.contents.push_back(arrow::fs::File(filename));