Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/iceberg/test/arrow_s3_file_io_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ class ArrowS3FileIOTest : public ::testing::Test {
protected:
#if ICEBERG_S3_ENABLED
static void SetUpTestSuite() {
// Off EC2 every S3 client build waits for this to time out. Not overwritten,
// so a run that does want those credentials can still ask.
# ifdef _WIN32
if (std::getenv("AWS_EC2_METADATA_DISABLED") == nullptr) {
_putenv_s("AWS_EC2_METADATA_DISABLED", "true");
}
# else
::setenv("AWS_EC2_METADATA_DISABLED", "true", /*overwrite=*/0);
# endif
auto io = MakeS3FileIO({});
ASSERT_THAT(io, IsOk());
}
Expand Down
Loading