MCPcopy Create free account
hub / github.com/apache/arrow / SetUp

Method SetUp

cpp/src/arrow/filesystem/s3fs_test.cc:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191class S3TestMixin : public AwsTestMixin {
192 public:
193 void SetUp() override {
194 AwsTestMixin::SetUp();
195
196 // Starting the server may fail, for example if the generated port number
197 // was "stolen" by another process. Run a dummy S3 operation to make sure it
198 // is running, otherwise retry a number of times.
199 Status connect_status;
200 int retries = kNumServerRetries;
201 do {
202 ASSERT_OK(InitServerAndClient());
203 connect_status = OutcomeToStatus("ListBuckets", client_->ListBuckets());
204 } while (!connect_status.ok() && --retries > 0);
205 ASSERT_OK(connect_status);
206 }
207
208 void TearDown() override {
209 // Aws::S3::S3Client destruction relies on AWS SDK, so it must be

Callers

nothing calls this directly

Calls 3

OutcomeToStatusFunction · 0.85
ListBucketsMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected