Skip to content

Commit 568e719

Browse files
committed
Add more setup check
1 parent 6714254 commit 568e719

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cpp/src/arrow/filesystem/azurefs_test.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,13 @@ class TestAzureFileSystem : public ::testing::Test {
892892
}
893893

894894
void SetUp() override {
895-
auto make_options = [this]() -> Result<AzureOptions> {
896-
ARROW_ASSIGN_OR_RAISE(auto env, GetAzureEnv());
897-
EXPECT_THAT(env, NotNull());
895+
auto env_result = GetAzureEnv();
896+
if (!env_result.ok()) {
897+
GTEST_SKIP() << "Failed to setup: " << env_result.status().ToString();
898+
}
899+
auto env = *env_result;
900+
EXPECT_THAT(env, NotNull());
901+
auto make_options = [this, &env]() -> Result<AzureOptions> {
898902
ARROW_ASSIGN_OR_RAISE(debug_log_start_, env->GetDebugLogSize());
899903
return MakeOptions(env);
900904
};

0 commit comments

Comments
 (0)