You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "amoeba (via GitHub)" <gi...@apache.org> on 2025/08/09 14:28:00 UTC
Re: [PR] test(c/driver_manager): Make DriverManifest::SetUp more resilient [arrow-adbc]
amoeba commented on code in PR #3251:
URL: https://github.com/apache/arrow-adbc/pull/3251#discussion_r2264767177
##########
c/driver_manager/adbc_driver_manager_test.cc:
##########
@@ -417,7 +417,9 @@ class DriverManifest : public ::testing::Test {
auto temp_path = std::filesystem::temp_directory_path();
temp_path /= "adbc_driver_manager_test";
- ASSERT_TRUE(std::filesystem::create_directories(temp_path));
+ if (!std::filesystem::exists(temp_path)) {
+ ASSERT_TRUE(std::filesystem::create_directories(temp_path));
Review Comment:
I'm not sure we gain anything though I kinda like failing the test here. It certainly helped me figure out where to start looking (versus an actual test body failing).
I went ahead and minimized the code in follow-up commits. Is that about what you were thinking?
--
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.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org